How to iterate over all lines output by zsh without installing IFS?
The reason is because I want to run a command for each file output by the command, and some of these files contain spaces.
For example, given the remote file:
foo/bar baz/gamma
That is, one directory "foo" containing the subdirectory "bar baz" containing the file "gamma".
Then runs:
git ls-files --deleted | xargs ls
A report will open in this file, which will be processed as two files: 'foo / bar' and '/ baz / gamma'.
I need it to treat it as a single file: foo / bar baz / gamma.
source
share