PATH=/usr/local/bin:/bin:/usr/bin considered harmful

Sam Varshavchik mrsam at
Sat Jun 23 13:02:59 UTC 2012

Roman Rakus writes:

> On 06/22/2012 05:15 AM, Sam Varshavchik wrote:
>> [root at octopus ~]# strings /bin/bash | grep usr.bin
>> /usr/local/bin:/bin:/usr/bin
>> I think that bash needs to be recompiled, with the last two flipped, in the  
>> default shell PATH.
> The path above is used by bash only if PATH env variable is not set.

Well, yes. Which means that in order to build packages containing portable  
config code that searches its PATH to locate where the platform installs  
Perl, and you actually want to be able to avoid your package creating a  
dependency fail the next time Perl gets upgraded, it is now necessary to  
override PATH in the rpm spec script.

That certainly makes a lot of sense. Not.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <>

More information about the devel mailing list