Sujet : Re: Long filenames in DOS/Windows and Unix/Linux
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.programmerDate : 04. Sep 2024, 00:54:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vb87jr$3h6uk$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Pan/0.160 (Toresk; )
On Tue, 03 Sep 2024 16:10:42 -0700, Keith Thompson wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
On Tue, 03 Sep 2024 15:16:36 -0700, Keith Thompson wrote:
>
For example, I might type something like:
for file in * ; do cp -p $file $file.bak ; done
>
It’s quite easy to fix that to work with spaces in file names.
I wouldn't call it "quite easy".
As easy as this, in Bash at least:
IFS=$'\n'
I’ve been told elsewhere that $'\n' is also valid in the latest Posix
spec.