Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unterminated for loop
- X-seq: zsh-users 29086
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Unterminated for loop
- Date: Wed, 7 Jun 2023 10:13:36 +0200
- Archived-at: <https://zsh.org/users/29086>
- In-reply-to: <CAH+w=7aQS5us9O8tQbQxzY1PSGz=U1aHK1gvZUN9ZU0owX=e2w@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAN=4vMoM64ZT3uJ2iSndERUKdcyt5cyU8tEshF76HjYhUznBsg@mail.gmail.com> <CAHYJk3QzE7u_VkPWe3jScz-yRDaDVJ-Dk20xFtMH=7H1JaKAPw@mail.gmail.com> <CAH+w=7aQS5us9O8tQbQxzY1PSGz=U1aHK1gvZUN9ZU0owX=e2w@mail.gmail.com>
On Wed, Jun 7, 2023 at 4:59 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> Someone please remind me what this sentence under IGNORE_EOF means?
> Also, if this option is set and the Zsh Line Editor is used,
> widgets implemented by shell functions can be bound to EOF
> (normally Control-D) without printing the normal warning message.
>
> I guess "bound to EOF" means overriding the stty EOF character.
> What's the significance of the part about the warning message?
It means you can do this:
setopt ignore_eof
bindkey '^D' my-eof
I do this in my zsh config.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author