Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (N) defaults to whole directory listing
- X-seq: zsh-users 26442
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Ray Andrews <rayandrews@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: (N) defaults to whole directory listing
- Date: Sat, 30 Jan 2021 11:50:23 +0100
- Archived-at: <https://zsh.org/users/26442>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/CAN%3D4vMop86hkyYMaBkF-tJaVRaN5Z28gJLqL9tSdy-uy1DNMgg%40mail.gmail.com>
- In-reply-to: <CAH+w=7bN7miEudLZcLknDQH3im=u8CCe_3GUqtEJMtyidV8bUg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <d611ab66-c6f9-655f-89dc-ded8697fe0ed@eastlink.ca> <CAN=4vMp+JykOWEYQ5qO495-hOpQXh+4RN6iHcYTP-APg8XHESQ@mail.gmail.com> <CAH+w=7bN7miEudLZcLknDQH3im=u8CCe_3GUqtEJMtyidV8bUg@mail.gmail.com>
On Fri, Jan 29, 2021 at 8:04 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, Jan 29, 2021 at 7:33 AM Roman Perepelitsa
> <roman.perepelitsa@xxxxxxxxx> wrote:
> >
> > print -rC1 -- no_such_file(N)
> >
> > This will print `no_such_file` if such file exists and will do nothing
> > otherwise.
>
> Not precisely nothing ... it will print a newline.
If the file doesn't exist, the command is equivalent to this:
print -rC1 --
This command doesn't print anything.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author