Sujet : Putting arbitrary characters into the shell command line (was: Long filenames in DOS/Windows and Unix/Linux)
De : nn.throttle (at) *nospam* xoxy.net (Helmut Waitzmann)
Groupes : comp.unix.programmer comp.unix.shellSuivi-à : comp.unix.shellDate : 01. Sep 2024, 20:07:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <83ed635h1r.fsf_-_@helmutwaitzmann.news.arcor.de>
References : 1 2 3 4 5 6 7 8
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Lawrence D'Oliveiro <
ldo@nz.invalid>:
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. >
Thanks to the newest POSIX standard, this is part of the standard: <
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_02_04> Followup-To: comp.unix.shell