<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: double slash in PATH in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980779#M781809</link>
    <description>I was thinking that someone must have gone to some trouble to implement the feature of ignoring the multiple slashes, and maybe there was or still is a reason for it, whether the reason is still valid or not. &lt;BR /&gt;&lt;BR /&gt;In the posix shell, from the command line, it makes no difference whether I issue an ls command with a single slash, or several:&lt;BR /&gt;&lt;BR /&gt;# ls /opt/perl&lt;BR /&gt;bin   html  lib   man&lt;BR /&gt;&lt;BR /&gt;# ls /opt//////perl&lt;BR /&gt;bin   html  lib   man&lt;BR /&gt;&lt;BR /&gt;#</description>
    <pubDate>Wed, 24 May 2006 16:12:37 GMT</pubDate>
    <dc:creator>John Kittel</dc:creator>
    <dc:date>2006-05-24T16:12:37Z</dc:date>
    <item>
      <title>double slash in PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980776#M781806</link>
      <description>HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;What is the reason for or purpose of allowing double slashes in the PATH variable? Why does the default PATH variable on a system delivered from HP with HP-UX already installed contain double slashes in some of the directory specifications? From the limited testing and searching I have done, it looks as though a double slash is silently interpreted as a single slash, so it appears to have no effect whatever.&lt;BR /&gt;&lt;BR /&gt; - John</description>
      <pubDate>Wed, 24 May 2006 15:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980776#M781806</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2006-05-24T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: double slash in PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980777#M781807</link>
      <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;That sounds like a filter (script) gone wrong.  As noted, the extra slash(es) are benignly interpreted as one slash.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 24 May 2006 16:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980777#M781807</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-05-24T16:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: double slash in PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980778#M781808</link>
      <description>Your interpretation is correct.&lt;BR /&gt;&lt;BR /&gt;I've seen this more than once. IIRC /opt/hpnp is a known offender.&lt;BR /&gt;Just ignore it&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 24 May 2006 16:08:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980778#M781808</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-05-24T16:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: double slash in PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980779#M781809</link>
      <description>I was thinking that someone must have gone to some trouble to implement the feature of ignoring the multiple slashes, and maybe there was or still is a reason for it, whether the reason is still valid or not. &lt;BR /&gt;&lt;BR /&gt;In the posix shell, from the command line, it makes no difference whether I issue an ls command with a single slash, or several:&lt;BR /&gt;&lt;BR /&gt;# ls /opt/perl&lt;BR /&gt;bin   html  lib   man&lt;BR /&gt;&lt;BR /&gt;# ls /opt//////perl&lt;BR /&gt;bin   html  lib   man&lt;BR /&gt;&lt;BR /&gt;#</description>
      <pubDate>Wed, 24 May 2006 16:12:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980779#M781809</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2006-05-24T16:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: double slash in PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980780#M781810</link>
      <description>The main culprit is generally a scipt, as JRF said.&lt;BR /&gt;&lt;BR /&gt;What can happen is:&lt;BR /&gt;&lt;BR /&gt;Some script does the following:&lt;BR /&gt;&lt;BR /&gt;export APP_PATH=/dir1/dir2/&lt;BR /&gt;export PATH=${APP_PATH}/bin:${APP_PATH}/sbin:${PATH}&lt;BR /&gt;&lt;BR /&gt;That will lead to:&lt;BR /&gt;&lt;BR /&gt;/dir1/dir2//bin:/dir1/dir2//sbin:a bunch of other stuff&lt;BR /&gt;&lt;BR /&gt;in your path.  It essentially falls into the bad coding category.&lt;BR /&gt;&lt;BR /&gt;If it bothers you, it should be relatively easy to check /etc/PATH, /etc/profile, ~/.profile or whatever and find the offending entries.</description>
      <pubDate>Wed, 24 May 2006 16:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980780#M781810</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-05-24T16:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: double slash in PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980781#M781811</link>
      <description>As mentioned, the multiple slashes are ignored and cause no problems or performance issues. The default PATH statement starts in /etc/PATH and for most sysadmins, it is in serious need of revising. Many of the listed paths have no business being in every user's environment and a long PATH string is indeed a potential performance issue, but more important, a potential security issue. I recommand trimming /etc/PATH to just the basics such as:&lt;BR /&gt; &lt;BR /&gt;/usr/bin&lt;BR /&gt; &lt;BR /&gt;and then add any specific paths that *ALL* users need. Do NOT include root users as they will need paths in directories that normal users can't even read. Adjust specific user by appending specialty directories, and of course, root gets all sorts of special directories appended in .profile.&lt;BR /&gt; &lt;BR /&gt;One of the biggest errors in PATH is the occurance of the current working directory. Most sysadmins realize how bad the security risk is with this element, but just as many will fail to see the PWD in $PATH because it can appear in several different ways. The most common error is :: which is the same as :.: but also a trailing colon at the end of $PATH.&lt;BR /&gt; &lt;BR /&gt;Another really important issue in PATH is the actual directory: Does it exist at all? Are the permissions secure enough to prevent dropping a Trojan horse into it? Has the directory appeared more than onec in $PATH? Is the directory actually a symlink?&lt;BR /&gt; &lt;BR /&gt;Here is a script that will analyze /etc/PATH as well as the current user's $PATH.</description>
      <pubDate>Wed, 24 May 2006 20:50:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980781#M781811</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-05-24T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: double slash in PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980782#M781812</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to remark, that in DomainOS - some may rememeber - a double slash at the beginning of a pathname meant something really different - the superroot of a network.&lt;BR /&gt;E.g. //node_4671/usr/local was a pathname locating at an other host.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Thu, 25 May 2006 07:14:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980782#M781812</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-05-25T07:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: double slash in PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980783#M781813</link>
      <description>Thank you, everyone.</description>
      <pubDate>Thu, 25 May 2006 10:54:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/double-slash-in-path/m-p/4980783#M781813</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2006-05-25T10:54:04Z</dc:date>
    </item>
  </channel>
</rss>

