Sujet : Re: Default PATH setting - reduce to something more sensible?
De : geoff (at) *nospam* clare.See-My-Signature.invalid (Geoff Clare)
Groupes : comp.unix.shellDate : 22. Jan 2025, 14:26:57
Autres entêtes
Message-ID : <1a876l-53v.ln1@ID-313840.user.individual.net>
References : 1 2 3 4 5
User-Agent : Pan/0.154 (Izium; 517acf4)
Axel Reichert wrote:
tilde expansion is not, AFAIK, included in POSIX
Incorrect. See XCU 2.6.1 Tilde Expansion, which includes the following:
In an assignment (see XBD Section 4.26), multiple tilde-prefixes
can be used: one at the beginning of the word (that is, following
the <equals-sign> of the assignment), or one following any unquoted
<colon>, or both.
The reason this is there is for things like PATH=~/bin:~/sbin:/bin:...
-- Geoff Clare <netnews@gclare.org.uk>