Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: error on TTY read: no such file or directory
- X-seq: zsh-workers 15903
- From: lordzork@xxxxxxxxxxxx
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: error on TTY read: no such file or directory
- Date: Sat, 29 Sep 2001 20:24:23 -0400
- In-reply-to: <1010929223918.ZM20169@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: lordzork industries
- References: <20010928121347.B16561@xxxxxxxxxxxxxx> <3BB56D03.2000300@xxxxxxxxxxxxxx> <20010929034953.E16561@xxxxxxxxxxxxxx> <3BB62E93.10802@xxxxxxxxxxxxxx> <20010929170811.G16561@xxxxxxxxxxxxxx> <3BB63D16.5040709@xxxxxxxxxxxxxx> <20010929173848.H16561@xxxxxxxxxxxxxx> <3BB64378.8060505@xxxxxxxxxxxxxx> <20010929181100.I16561@xxxxxxxxxxxxxx> <1010929223918.ZM20169@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: lordzork@xxxxxxxxxxxx
In the gothic chambers of the underworld on Sat 29 Sep 2001 at 18:39 -0400,
Bart Schaefer muttered darkly:
> On Sep 29, 6:11pm, lordzork@xxxxxxxxxxxx wrote:
> }
> } ((UID)) || {
> } set -x
> } exec 2>|/tmp/login-trace
> } }
>
> You can take that out now, it isn't helping.
>
> } > It was not my question. I do not understand where this data comes from
> } > and how can read one byte return 1025 bytes. It looks more like a
> } > contents of readdir() but I have no idea how can it appear on shell input.
>
> The data printed by strace is misleading. read() is being called with
> the address of single character (line 405 of zle_main.c):
>
> r = read(SHTTY, &cc, 1);
>
> Strace displays the arguments as they were passed *to* the read() call,
> not as they are returned, so what you're seeing in the trace is just
> stack garbage.
>
> Nevertheless, the problem is that read() is returning a positive integer
> greater than the number of bytes it was asked to read. This confuses
> the getkey() loop, which only expects that `r' can be 1, 0, or -1 at
> that point. You need to find out why your read() call is so badly broken!
>
and this read() function is a part of what? zsh? glibc?
t.
--
4.0k -rw-rw-r-- 1 zork zork 17 Apr 4 17:38 .signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author