[NTLUG:Discuss] PATH issue

Fred James fredjame at fredjame.cnc.net
Fri Jul 29 12:18:02 CDT 2011


Eric Schnoebelen wrote:
> Fred James writes:
> - In tracking down another problem (possibly related) I found that my PATH 
> - is set as follows ...
> -
> - /bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:\
> -	/usr/lib/qt3//bin:/usr/lib/qt4/bin:/usr/lib/qt3//bin:\
> -	/home/fredjame/bin:/usr/lib/qt4/bin:/usr/lib/qt3//bin
> -
> - ... wherein that last bit (:/usr/lib/qt3//bin) looks like a possible 
> - show stopper(?) for some things, but I cannot seem to locate where that 
> - is being set.
>
> Why do you think it might be  show-stopper?
>
> (now, the fact that you've got
> '/usr/lib/qt4/bin:/usr/lib/qt3/bin' in your path 3 times is
> annoying, but hardly a problem.)
>
> As someone else mentioned, the double slashes will be compressed
> into a single slash as far as walking the directory structures
> is concerned. (actually, I think POSIX specifies that any number
> of adjacent slashes in the path are treated as a single slash
> character -- although I imagine the standards document says
> something like "path seperator".. :D)
>
> --
> Eric Schnoebelen		eric at cirr.com		http://www.cirr.com
>   
Thanks all ... I didn't know the multiple slash thing ... thanks again
Regards
Fred James




More information about the Discuss mailing list