<?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: Linux: pathmunge Command in Shell Script</title> <atom:link href="http://www.cyberciti.biz/faq/redhat-linux-pathmunge-command-in-shell-script/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/redhat-linux-pathmunge-command-in-shell-script/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55: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: dt</title><link>http://www.cyberciti.biz/faq/redhat-linux-pathmunge-command-in-shell-script/#comment-38570</link> <dc:creator>dt</dc:creator> <pubDate>Thu, 14 Aug 2008 04:14:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1398#comment-38570</guid> <description>I agree, you didn&#039;t really answer much of the question at all.  Also, it is not &#039;best to avoid this function&#039; as you state.  What is best is follow Patrick&#039;s advice and just copy it directly into your own shell script.</description> <content:encoded><![CDATA[<p>I agree, you didn&#8217;t really answer much of the question at all.  Also, it is not &#8216;best to avoid this function&#8217; as you state.  What is best is follow Patrick&#8217;s advice and just copy it directly into your own shell script.</p> ]]></content:encoded> </item> <item><title>By: Patrick Horgan</title><link>http://www.cyberciti.biz/faq/redhat-linux-pathmunge-command-in-shell-script/#comment-38568</link> <dc:creator>Patrick Horgan</dc:creator> <pubDate>Wed, 13 Aug 2008 21:43:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1398#comment-38568</guid> <description>It would have been nice if you explained what the script does!  pathmunge adds something to the path only if it wasn&#039;t already there.  So if your path contains:
/bin:/usr/bin
pathmunge /usr/bin
will do nothing.
pathmunge /sbin
will result in a path a path containing:
/sbin:/bin:/usr/bin
if instead, you&#039;d said pathmunge /sbin after, the
result would have been:
/bin:/usr/bin:/sbin
For portability, if you need something like this, just make it a part of your script.</description> <content:encoded><![CDATA[<p>It would have been nice if you explained what the script does!  pathmunge adds something to the path only if it wasn&#8217;t already there.  So if your path contains:<br
/> /bin:/usr/bin<br
/> pathmunge /usr/bin<br
/> will do nothing.<br
/> pathmunge /sbin<br
/> will result in a path a path containing:<br
/> /sbin:/bin:/usr/bin<br
/> if instead, you&#8217;d said pathmunge /sbin after, the<br
/> result would have been:<br
/> /bin:/usr/bin:/sbin<br
/> For portability, if you need something like this, just make it a part of your script.</p> ]]></content:encoded> </item> </channel> </rss>
