Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
(N) defaults to whole directory listing
- X-seq: zsh-users 26434
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: (N) defaults to whole directory listing
- Date: Fri, 29 Jan 2021 07:24:16 -0800
- Archived-at: <https://zsh.org/users/26434>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/d611ab66-c6f9-655f-89dc-ded8697fe0ed%40eastlink.ca>
- List-id: <zsh-users.zsh.org>
Is this really what we want?
$ ls -1 no_such_file
ls: cannot access 'no_such_file': No such file or directory
$ ls -1 no_such_file 2> /dev/null
$ ls -1 no_such_file(N)
aaa
aa-messagefunctions
aliases
aliases,1,remove _find_match
aliases,2,STARTCOM
...
.... lists the whole directory. It's not exactly what one might
expect. I can see that if the argument 'disappears' entirely then
'ls' thinks 'ls *' but shouldn't 'ls' be in a 'not found' condition
rather than a 'list all' condition?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author