<?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: What shell am I in?</title>
	<atom:link href="http://www.lifeaftercoffee.com/2008/02/20/what-shell-am-i-in/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeaftercoffee.com/2008/02/20/what-shell-am-i-in/</link>
	<description>because I don't believe in life before coffee...</description>
	<lastBuildDate>Wed, 23 Nov 2011 03:01:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Selva Sabapathy</title>
		<link>http://www.lifeaftercoffee.com/2008/02/20/what-shell-am-i-in/comment-page-1/#comment-375566</link>
		<dc:creator>Selva Sabapathy</dc:creator>
		<pubDate>Thu, 11 Mar 2010 03:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2008/02/20/what-shell-am-i-in/#comment-375566</guid>
		<description>Try &quot;ps $$&quot;</description>
		<content:encoded><![CDATA[<p>Try &#8220;ps $$&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ganesh</title>
		<link>http://www.lifeaftercoffee.com/2008/02/20/what-shell-am-i-in/comment-page-1/#comment-371433</link>
		<dc:creator>ganesh</dc:creator>
		<pubDate>Mon, 29 Dec 2008 18:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2008/02/20/what-shell-am-i-in/#comment-371433</guid>
		<description>That&#039;s a good information sharing.Thank you.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good information sharing.Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://www.lifeaftercoffee.com/2008/02/20/what-shell-am-i-in/comment-page-1/#comment-370948</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Mon, 24 Nov 2008 01:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2008/02/20/what-shell-am-i-in/#comment-370948</guid>
		<description>Using &lt;code&gt;$SHELL&lt;/code&gt; is fine if you need to find out your &lt;i&gt;login&lt;/i&gt; shell. However, to get the true value of which shell is being used &lt;strong&gt;at the current moment&lt;/strong&gt; can I recommend that you teach people to use &lt;code&gt;echo $0&lt;/code&gt; (although, admittedly csh will produce &lt;code&gt;&quot;No file for $0&quot;&lt;/code&gt;) since we may have fired up a different shell since logging in  and will invariably need to check which is running before performing any specific shell-scripting?

E.g. 
&lt;code&gt;
$ grep lee /etc/passwd 
lee:x:1000:1000:Lee,,,:/home/lee:/bin/bash 
$ echo $SHELL $0 
/bin/bash bash 
$ ksh 
$ echo $SHELL $0 
/bin/bash ksh 
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Using <code>$SHELL</code> is fine if you need to find out your <i>login</i> shell. However, to get the true value of which shell is being used <strong>at the current moment</strong> can I recommend that you teach people to use <code>echo $0</code> (although, admittedly csh will produce <code>"No file for $0"</code>) since we may have fired up a different shell since logging in  and will invariably need to check which is running before performing any specific shell-scripting?</p>
<p>E.g.<br />
<code><br />
$ grep lee /etc/passwd<br />
lee:x:1000:1000:Lee,,,:/home/lee:/bin/bash<br />
$ echo $SHELL $0<br />
/bin/bash bash<br />
$ ksh<br />
$ echo $SHELL $0<br />
/bin/bash ksh<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

