Sujet : Re: Long filenames in DOS/Windows and Unix/Linux
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.programmer comp.unix.shellDate : 08. Sep 2024, 06:24:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbjcdj$1qrgd$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 01.09.2024 09:03, Lawrence D'Oliveiro wrote:
I wrote:
If you avoid newlines in filenames, Posix shells can cope with anything
else if you set “IFS=$'\n'”.
Sorry, no, it looks like the “$'...'” syntax for string literals is not
from Posix, it’s a Bash-ism.
Note that it's not a "Bash-ism" - Bash was rarely the _inventor_ of
any shell features, mostly adopted them from other shells, primarily
from Kornshell (still, by far, not catching up).
Kornshell documented that specific feature with its 1993 version.
And we've learned from other replies that it's meanwhile - 30 years
later - already in POSIX. (Good news!)
Janis