Sujet : Re: Long filenames in DOS/Windows and Unix/Linux
De : wayne (at) *nospam* nospam.invalid (Wayne)
Groupes : comp.unix.programmer comp.unix.shellDate : 03. Sep 2024, 19:56:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vb7ijo$3dn65$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
On 9/1/2024 3:03 AM, 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.
Actually, dollar quotes were added to POSIX as of SUS Issue 8:
"2.2.4 Dollar-Single-Quotes
A sequence of characters starting with a <dollar-sign> immediately followed
by a single-quote ($') shall preserve the literal value of all characters up to
an unescaped terminating single-quote ('), with the exception of certain
<backslash>-escape sequences, as follows:
..."
<
https://pubs.opengroup.org/onlinepubs/9799919799/>
-- Wayne