Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: spaces in filenames should be a crime.



On 26/03/17 06:44 PM, Martijn Dekker wrote:

Note that 'ls' is an external command that doesn't do anything but list ..

Of course. I worded that poorly. I shouldn't have said: " our 'ls' ", but something like "we can leverage 'ls' to do the whole thing".
(This is a fundamental difference with DOS/Windows batch files, where
every command is expected to resolve patterns by itself.)

Yes, and how hard that was to get through my skull.

A common alternative idiom is
to prepend './' to the glob pattern so that every argument expanded from
it also starts with './' (and hence never '-').
Cool.



Messages sorted by: Reverse Date, Date, Thread, Author