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

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



Peter Stephenson wrote on Wed, 19 Jan 2022 20:08 +00:00:
> On Wed, 2022-01-19 at 09:29 -0800, Bart Schaefer wrote:
>> On Wed, Jan 19, 2022 at 6:07 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>> > 
>> > So perhaps we need some syntactic sugar for "wrap a command with
>> > a well-known pair of before/after modifiers".
>> 
>> Not every problem deserves a generalized solution.  This sort of thing
>> can already be done with function wrappers, wanders pretty far afield
>> from shell syntax, and adds keywords in ambiguous contexts.
>
> Yes, I think Mikael's tiny change would be a good addition.
> The STTY parameter is not something crying out for generalisation.

Fair enough.

As to "adds keywords in ambiguous contexts": I haven't proposed any
particular syntax; I only described functionality.





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