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

Re: PATCH: Re: Segmentation fault 3.1.7-pre-3/4



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