Sujet : Re: Default PATH setting - reduce to something more sensible?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 25. Jan 2025, 13:00:42
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vn2jpc$2pr19$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 24.01.2025 22:42, Keith Thompson wrote:
~ is equivalent to $HOME in most contexts. I suggest that assuming that
~, like $HOME, is expanded in double quotes is a very easy mistake to
make. And the bash misfeature we're discussing can make it hard to
detect that mistake.
Yes, to both.
(It certainly helps to know the standard shell quoting mechanisms.
That's so basic that it cannot be overestimated and should always
be emphasized. - I've experienced that even regular, experienced
shell users don't seem to know the exact mechanism in all cases.)
Anyone reading the docs? :-)
Janis