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

Re: PATCH: Allow using STTY= to save terminal state



On Thu, Jan 20, 2022 at 11:12 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> As to "adds keywords in ambiguous contexts": I haven't proposed any
> particular syntax; I only described functionality.

Fair enough. :-)  I'm not sure how you'd do it without a keyword, though.

As to the original question, zsh runs "stty" without qualification, so
you can do:

stty() {
  [[ -n "$*" ]] && command stty "$@"
}

to get the same effect as Mikael's patch.




Messages sorted by: Reverse Date, Date, Thread, Author