|
|
|
|
|
by yokohummer7
2093 days ago
|
|
> likely in order to have those paths easier to copy and paste, but it does so only if !isatty(). I thought the reason was to aid shell scripts that assumed no whitespaces in file names, wasn't it? Also, I believe I've seen single quotes when using `ls` on a terminal, so the behavior is not only for `!isatty()`. |
|
It wouldn't help shell scripts that assumed no whitespaces in file names anyway. You would get something like "'a", "b'", "c", "d" tokens which make no sense anyway.
The only sane way to iterate over files that I'm aware of is to use something like
But that's bashism...