[Bashdb-devel] Re: [PATCH] fix bashdb script handling of tmp directory

2005-09-24 Thread R. Bernstein
I've been meaning to thank Eric Blake for packaging the bash debugger on cygwin (where others previously had either no interest or gave up). So thanks! That said, this bug report isn't relevant to full-fledged bash debugger, but the older pot-bellied pig debugger which is included in the bash dist

Equivalent of ksh, zsh {N}<[WORD] ?

2008-08-26 Thread R. Bernstein
Both zsh and ksh have a way to open a file or duplicate a file descriptor and let the interpreter pick the descriptor saving the newly-allocated file descriptor number in a variable. In particular: exec {fd}<&0 will duplicate stdin and save the newly allocated file-descriptor number to fd. Als

Re: Equivalent of ksh, zsh {N}<[WORD] ?

2008-08-26 Thread R. Bernstein
Pierre Gaston writes: > On Tue, Aug 26, 2008 at 5:41 AM, R. Bernstein <[EMAIL PROTECTED]> wrote: > > Both zsh and ksh have a way to open a file or duplicate a file > > descriptor and let the interpreter pick the descriptor saving the > > newly-allocated file descript

Re: Equivalent of ksh, zsh {N}<[WORD] ?

2008-08-26 Thread R. Bernstein
Pierre Gaston writes: > On Tue, Aug 26, 2008 at 4:49 PM, R. Bernstein <[EMAIL PROTECTED]> wrote: > > Pierre Gaston writes: > > > On Tue, Aug 26, 2008 at 5:41 AM, R. Bernstein <[EMAIL PROTECTED]> wrote: > > > > Both zsh and ksh hav

Re: Equivalent of ksh, zsh {N}<[WORD] ?

2008-08-26 Thread R. Bernstein
Chet Ramey writes: > R. Bernstein wrote: > > Both zsh and ksh have a way to open a file or duplicate a file > > descriptor and let the interpreter pick the descriptor saving the > > newly-allocated file descriptor number in a variable. In particular: > > > >

Re: Equivalent of ksh, zsh {N}<[WORD] ?

2008-08-26 Thread R. Bernstein
Chet Ramey writes: > R. Bernstein wrote: > > > Right now what bashdb assumes that file descriptors 4 through 9 are > > free, but it really has no right to assume that. And in fact, GNU > > autoconf configure will use file descriptors in this range. Also using > &g

Re: Equivalent of ksh, zsh {N}<[WORD] ?

2008-08-26 Thread R. Bernstein
Chet Ramey writes: > > Redirections using file descriptors greater than 9 should be used with > > care, as they may conflict with file descriptors the shell uses > > internally. ... > The sentence is more a caution about the previously-mentioned clexec bugs. > As a practical matter, you