<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tip: Commands To Find Out The Shell You Are Using</title>
	<atom:link href="http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html/feed" rel="self" type="application/rss+xml" />
	<link>http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html</link>
	<description>Shantanu's Gadgets, Gizmos, Hacks, Tips, Tricks, Technology...and your kitchen sink</description>
	<lastBuildDate>Wed, 08 Feb 2012 20:40:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Shantanu Goel</title>
		<link>http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9722</link>
		<dc:creator>Shantanu Goel</dc:creator>
		<pubDate>Fri, 13 Feb 2009 12:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9722</guid>
		<description>@Stephan: Thats because you might not have a choice to choose your shell if you are logging onto a remote server. The admin might not have even installed bash (or your preferred shell).</description>
		<content:encoded><![CDATA[<p>@Stephan: Thats because you might not have a choice to choose your shell if you are logging onto a remote server. The admin might not have even installed bash (or your preferred shell).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan Beal</title>
		<link>http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9720</link>
		<dc:creator>Stephan Beal</dc:creator>
		<pubDate>Fri, 13 Feb 2009 11:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9720</guid>
		<description>Why not just ENSURE that you&#039;re running a specific (preferred) shell by calling:

exec /bin/bash

?

That avoids any question of &quot;to which shell must i adapt myself for this session?&quot;</description>
		<content:encoded><![CDATA[<p>Why not just ENSURE that you&#8217;re running a specific (preferred) shell by calling:</p>
<p>exec /bin/bash</p>
<p>?</p>
<p>That avoids any question of &#8220;to which shell must i adapt myself for this session?&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shantanu Goel</title>
		<link>http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9348</link>
		<dc:creator>Shantanu Goel</dc:creator>
		<pubDate>Tue, 03 Feb 2009 18:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9348</guid>
		<description>@Shantanu, renoX: Thanks for pointing it out. I&#039;ll update the post to reflect this.</description>
		<content:encoded><![CDATA[<p>@Shantanu, renoX: Thanks for pointing it out. I&#8217;ll update the post to reflect this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renoX</title>
		<link>http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9345</link>
		<dc:creator>renoX</dc:creator>
		<pubDate>Tue, 03 Feb 2009 18:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9345</guid>
		<description>Tip#1 isn&#039;t always correct; the SHELL environment variable isn&#039;t alway correctly set..

I use &#039;ps -p $$&#039; myself.</description>
		<content:encoded><![CDATA[<p>Tip#1 isn&#8217;t always correct; the SHELL environment variable isn&#8217;t alway correctly set..</p>
<p>I use &#8216;ps -p $$&#8217; myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit</title>
		<link>http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9323</link>
		<dc:creator>Rohit</dc:creator>
		<pubDate>Tue, 03 Feb 2009 04:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9323</guid>
		<description>Nice Tip Man !
Thanks :)
and good to see ur posts being referred by Linux today :)</description>
		<content:encoded><![CDATA[<p>Nice Tip Man !<br />
Thanks <img src='http://tech.shantanugoel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
and good to see ur posts being referred by Linux today <img src='http://tech.shantanugoel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shantanu Kumar</title>
		<link>http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9300</link>
		<dc:creator>Shantanu Kumar</dc:creator>
		<pubDate>Mon, 02 Feb 2009 14:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://tech.shantanugoel.com/2009/01/27/tip-commands-to-find-out-the-shell-you-are-using.html#comment-9300</guid>
		<description>Tip #1 is wrong. It does not work on redirection.

On machines that drop me into a non-BASH shell, I usually write a .rc file and execute bash there to launch BASH. For example, when one of the machines drops me into TCSH, I write a .tcshrc file containing this:

alias &#124; awk -F&#039; &#039; &#039;{ print &quot;alias &quot;$1&quot;=\&quot;&quot;$2&quot; &quot;$3&quot; &quot;$4&quot; &quot;$5&quot; &quot;$6&quot; \&quot;&quot;$7&quot;&quot;; }&#039; &gt; .bash_aliases
bash

and in .bashrc file, I write the following

export PS1=[\\u@\\h:\\w]\$\
export PS2=\&gt;
export PS4=+
. .bash_aliases

This brings me inside a BASH shell, but echo $SHELL still prints /bin/tcsh.</description>
		<content:encoded><![CDATA[<p>Tip #1 is wrong. It does not work on redirection.</p>
<p>On machines that drop me into a non-BASH shell, I usually write a .rc file and execute bash there to launch BASH. For example, when one of the machines drops me into TCSH, I write a .tcshrc file containing this:</p>
<p>alias | awk -F&#8217; &#8216; &#8216;{ print &#8220;alias &#8220;$1&#8243;=\&#8221;"$2&#8243; &#8220;$3&#8243; &#8220;$4&#8243; &#8220;$5&#8243; &#8220;$6&#8243; \&#8221;"$7&#8243;&#8221;; }&#8217; &gt; .bash_aliases<br />
bash</p>
<p>and in .bashrc file, I write the following</p>
<p>export PS1=[\\u@\\h:\\w]\$\<br />
export PS2=\&gt;<br />
export PS4=+<br />
. .bash_aliases</p>
<p>This brings me inside a BASH shell, but echo $SHELL still prints /bin/tcsh.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

