Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: Segmentation fault 3.1.7-pre-3/4
- X-seq: zsh-workers 11526
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: Re: Segmentation fault 3.1.7-pre-3/4
- Date: Tue, 23 May 2000 10:10:17 +0100
- In-reply-to: "Your message of Tue, 23 May 2000 10:31:36 +0200." <200005230831.KAA23545@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Sven wrote
> But with zle not loaded, the
>
> zsh -c "read -q '?Can you see this? '" < /dev/null >& /dev/null
>
> from 11036 doesn't show the prompt (but at least it doesn't segv
> anymore). Is it right or wrong? Do we have to work around it?
Seems to me that after doing your damnedest *not* to have the prompt shown,
you don't want it. `read -q' is documented as always reading from
the terminal, and the prompt as printing on stderr. I haven't checked
that's what's actually going on, but it's consistent.
I worry a bit about having a hidden file descriptor and FILE * in general:
we should be sure that the shell only uses them for editing or where
explicitly indicated. But I think it's OK here.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author