Re: [Fwd: Re: bash 3.1.10 breaks configure scripts (was Re: configure scripts ignores parameters)]

2006-03-07 Thread Chet Ramey
Mike Jakubik wrote: > FYI. This has been a known issue with bison-1.75 for over three years: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=167635;archive=yes http://lists.gnu.org/archive/html/bug-bash/2003-01/msg00061.html http://lists.gnu.org/archive/html/bug-bash/2004-09/msg00118.html Chet

Re: quoting inside backquotes in 3.1

2006-03-07 Thread Eric Blake
> Is it intentional that the following script, which worked in 2.05b now > produces errors in 3.1: > > : `: "\\""` > > That now results in: unexpected EOF while looking for matching ``' > Using a third backslash fixes it but this is inconsistent with ash bash2 > bsh ksh pdksh and zsh. No, it is

Re: quoting inside backquotes in 3.1

2006-03-07 Thread Chet Ramey
Oliver Kiddle wrote: > Is it intentional that the following script, which worked in 2.05b now > produces errors in 3.1: > > : `: "\\""` > > That now results in: unexpected EOF while looking for matching ``' > Using a third backslash fixes it but this is inconsistent with ash bash2 > bsh ksh pdksh

Re: trap handler scope wrong?

2006-03-07 Thread Chet Ramey
Phillip Susi wrote: > Chet Ramey wrote: >>> trap "cat $LOG > &3" ERR >>> { >>> foo >>> bar >>> } 3>&1 > /dev/null >> >> That's about right, but you need >&3 in the trap command. > > I did have > &3 in the trap command, see? There can't be a space between `>' and `&'. That's a syntax error. >

Re: How to suppress async messages for background jobs

2006-03-07 Thread Francesco Montorsi
Paul Jarc ha scritto: Francesco Montorsi <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED]:~$ kwrite & =>[1] 20986 [EMAIL PROTECTED]:~$ =>[1]+ Donekwrite [EMAIL PROTECTED]:~$ is there a way to tell bash not to print those lines marked with => ? If you don't need to refer

Re: trap handler scope wrong?

2006-03-07 Thread Chet Ramey
Phillip Susi wrote: > Does redirecting to /dev/tty work if the original stdout of the shell > was NOT a tty? This script runs as a cron job so it has no tty. Probably won't work to use /dev/tty in that case. > Also is there a better way to save the original stdout and switch back > to it than th

Re: LINES and COLUMNS variables are not exported

2006-03-07 Thread Bob Proulx
Thierry EXCOFFIER wrote: > LINES and COLUMNS variables are not exported, > so applications using these variables can not > find the screen size. The LINES and COLUMNS variables are an *override* to applications. It is not an application's primary method of getting the size

Re: trap handler scope wrong?

2006-03-07 Thread Phillip Susi
Chet Ramey wrote: trap "cat $LOG > &3" ERR { foo bar } 3>&1 > /dev/null That's about right, but you need >&3 in the trap command. I did have > &3 in the trap command, see? I'm a bit worried though about hard coding the fd 3. Is there a way to get the next available fd number and save it

Re: [Fwd: Re: bash 3.1.10 breaks configure scripts (was Re: configure scripts ignores parameters)]

2006-03-07 Thread Chet Ramey
Nicolas Rachinsky wrote: > * Chet Ramey <[EMAIL PROTECTED]> [2006-03-05 12:38 -0500]: >> This has been a known issue with bison-1.75 for over three years: >> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=167635;archive=yes >> http://lists.gnu.org/archive/html/bug-bash/2003-01/msg00061.html >>

Re: trap handler scope wrong?

2006-03-07 Thread Paul Jarc
Phillip Susi <[EMAIL PROTECTED]> wrote: > Chet Ramey wrote: >> That's about right, but you need >&3 in the trap command. > > I did have > &3 in the trap command, see? You have "> &3". You need ">&3", without a space. > I'm a bit worried though about hard coding the fd 3. Is there a way > to get

Re: How to suppress async messages for background jobs

2006-03-07 Thread Paul Jarc
Francesco Montorsi <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED]:~$ kwrite & > =>[1] 20986 > [EMAIL PROTECTED]:~$ > =>[1]+ Donekwrite > [EMAIL PROTECTED]:~$ > > is there a way to tell bash not to print those lines marked with => ? If you don't need to refer to the proce

Re: quoting inside backquotes in 3.1

2006-03-07 Thread Eric Blake
> This is how I interpreted POSIX's requirement that quoted strings > inside backquotes be recursively processed: My interpretation differs from yours, in order to match traditional behavior. > > "While processing the characters, if instances of expansions or quoting > are found nested within th