Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: TRAPNAL with TMOUT problem
- X-seq: zsh-users 3391
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Paul Lew <paullew@xxxxxxxxx>
- Subject: Re: TRAPNAL with TMOUT problem
- Date: Thu, 24 Aug 2000 10:27:41 -0700
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <14757.19686.238318.996093@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <14752.50467.89781.100331@xxxxxxxxxxxxxxxxxxxxxxx> <000821104808.ZM29840@xxxxxxxxxxxxxxxxxxxxxxx> <14754.42242.721509.918727@xxxxxxxxxxxxxxxxxxxxxxx> <1000822182401.ZM7808@xxxxxxxxxxxxxxxxxxxxxxx> <14757.19686.238318.996093@xxxxxxxxxxxxxxxxxxxxxxx>
On Aug 24, 9:27am, Paul Lew wrote:
> Subject: Re: TRAPNAL with TMOUT problem
> >>>>> "Bart" == Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:
>
> Bart> host_owner () {
> Bart> setopt localoptions no_ksh_arrays
> Bart> local devhostent
> Bart> while read -A devhostent
> Bart> do
> Bart> if [[ $devhostent[1] == $HOST ]]
> Bart> then
> Bart> # howner in scope of caller!
> Bart> howner=$devhostent[4]
> Bart> return
> Bart> fi
> Bart> done < $ar/etc/devhost
> Bart> }
>
> I tried this and the result is still the same. Which part of these
> procedures touched the tty device? Thanks..
I just ran through calling the above from TRAPALRM while watching zsh with
strace. Unless there's an error (/etc/devhost not found or not readable are
pretty much the only possible ones), *nothing* touches the tty device.
If there's an error, it gets printed and then ZLE resets the tty modes
and redraws the prompt; it's the tty mode setting in that case that causes
the access time to change.
This on a RedHat Linux system; it could be different on another OS.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author