zsh-users
 help / color / mirror / code / Atom feed
* (N) defaults to whole directory listing
@ 2021-01-29 15:24 Ray Andrews
  2021-01-29 15:33 ` Roman Perepelitsa
  0 siblings, 1 reply; 10+ messages in thread
From: Ray Andrews @ 2021-01-29 15:24 UTC (permalink / raw)
  To: Zsh Users

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?




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-18 10:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-29 15:24 (N) defaults to whole directory listing Ray Andrews
2021-01-29 15:33 ` Roman Perepelitsa
2021-01-29 17:01   ` Ray Andrews
2021-01-29 17:52     ` Lawrence Velázquez
2021-01-29 19:52       ` Ray Andrews
2021-01-29 18:47     ` Bart Schaefer
2021-01-29 19:04   ` Bart Schaefer
2021-01-30 10:50     ` Roman Perepelitsa
2021-01-30 15:00       ` Beverly Pope
2021-06-18 10:24     ` Why does >&- produce an error message when connected to a builtin? (was Re: (N) defaults to whole directory listing) Marlon Richert

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).