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

Re: Is this correct? Redirecting stdin/stout to implement a gdb-like "set inferior tty" in zshdb



On Tue, Dec 09, 2008 at 12:12:13PM +0000, Stephane Chazelas wrote:
> On Tue, Dec 09, 2008 at 06:27:48AM -0500, Rocky Bernstein wrote:
> [...]
> > exec 7<&0 </dev/null 6>&1  # Line taken from an autoconf "configure" script.
> > #...
> > exec {_Dbg_fdi} <> $1
> > while : ; do
> >   vared -e -h -p "foo> " line <&${_Dbg_fdi} || break
> 
> The thing is read doesn't read from fd 0 (not does it write its
[...]          ^^^^

Sorry, I meant "vared" above.

-- 
Stéphane



Messages sorted by: Reverse Date, Date, Thread, Author