bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11256: make check problems with coreutils 8.16 and earlier


From: Paul Eggert
Subject: bug#11256: make check problems with coreutils 8.16 and earlier
Date: Mon, 16 Apr 2012 14:25:23 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 04/16/2012 01:20 PM, Tim Mooney wrote:
> PATH is important enough that I want it set
> (correctly!) all the time.  The quintessential example of this is with
> 
>     ssh somehost some_obscure_command

When I've been in that situation I've
put something like this into .bashrc:

desired_PATH=/home/eggert/bin:/r/share1/bin:/usr/bin:...etc...
case :$PATH: in
*:"$desired_PATH":*) ;;
*) PATH=$desired_PATH ;;
esac

That way, if some other program prepends or appends
something to $PATH, my subshells respect that; but
if bash is being invoked de novo it uses the desired PATH.

Maybe you can use that idea.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]