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

Re: Unterminated for loop



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