Zsh Mailing List Archive
Messages sorted by:
Re: How to "STTY" when "setopt nointeractive"?
- X-seq: zsh-users 9529
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: How to "STTY" when "setopt nointeractive"?
- Date: Wed, 19 Oct 2005 21:33:26 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <1051019153601.ZM1348@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20051018191756.GA407@DervishD> <1051019014535.ZM32070@xxxxxxxxxxxxxxxxxxxxxxx> <20051019072418.GA1012@DervishD> <1051019153601.ZM1348@xxxxxxxxxxxxxxxxxxxxxxx>
Hi Bart :)
* Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> On Oct 19, 9:24am, DervishD wrote:
> } OK, that works. So STTY doesn't work if the shell is not
> } interactive, right? I don't understand why :?
> It's because scripts don't have ZLE to automatically reset the tty
> again after the change for that one command.
But the problem I'm seeing is not that, the tty doesn't remain
"changed" after the STTY use. The problem is that STTY doesn't do
Do you mean that STTY doesn't work *on purpose* because ZLE
couldn't reset the tty if STTY were used?
> The real intended usage of STTY is either to be typed at the prompt
> as a prefix to some command you know to need it, or to be included
> in aliases (which are expected only to be used interactively) in
> the same way.
I understand, but from the manual I suppose it worked in scripts,
too. I took a look at the source code, just in case, but I didn't
discovered any hint about STTY and INTERACTIVE relations.
Thanks for the explanation, Bart :)
Raúl Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by: