Re: bash stuck in a loop defining arrays

2009-02-27 Thread Pierre Gaston
On Thu, Feb 26, 2009 at 9:51 PM, Chet Ramey chet.ra...@case.edu wrote: Pierre Gaston wrote: sorry if this mail arrives twice, but the first mail didn't seem to made it through. Configuration Information [Automatically generated, do not change]: Machine: i386 OS: openbsd4.4 Compiler: gcc

Re: arguments to script prefixed with -- in debug

2009-02-27 Thread Jan Schampera
lehe wrote: Hi, I am trying to debug my shell script by bashdb. My script take as argument --gdb, so I wrote bashdb myscript.sh --gdb However, this way it will produce error that bashdb: unrecognized option '--gdb' If I quote --gdb as bashdb myscript.sh '--gdb' then I will

functions, process substitution, bad file descriptor

2009-02-27 Thread Ben Hyde
I ran into a problem using process substitution. A much reduced version is show below. The function f2 has the problem, the function f1 does not. Are there is some facts about the life cycle of the files created by process substitution I don't appreciate? - ben bash-3.2$ ls -l /tmp/foo

Re: functions, process substitution, bad file descriptor

2009-02-27 Thread Greg Wooledge
On Fri, Feb 27, 2009 at 09:26:29AM -0500, Ben Hyde wrote: f2(){ date cat $1 } f2 (echo l8r) Fri Feb 27 09:18:45 EST 2009 cat: /dev/fd/63: Bad file descriptor For whatever it's worth, I can reproduce this behavior on both Linux and OpenBSD (which use /dev/fd/*), in several versions of

Possible bash build bug?

2009-02-27 Thread George R. Goffe
Howdy, I'm trying to build this bash version (4.0 rc1) and am having problems. I'm enclosing a build log and am willing to test any changes you might send me or suggest. I have tried building with the latest readline (6.0) and have tried a couple of different options without any success.

Re: Possible bash build bug?

2009-02-27 Thread Chet Ramey
George R. Goffe wrote: Howdy, I'm trying to build this bash version (4.0 rc1) and am having problems. I'm enclosing a build log and am willing to test any changes you might send me or suggest. I have tried building with the latest readline (6.0) and have tried a couple of different

Re: functions, process substitution, bad file descriptor

2009-02-27 Thread Timothy Redaelli
Greg Wooledge wooledg at eeg.ccf.org writes: For whatever it's worth, I can reproduce this behavior on both Linux and OpenBSD (which use /dev/fd/*), in several versions of bash, but not on HP-UX (which uses named pipes). I can reproduce it also with bash 4 and bash 3.2 under gentoo

Re: Possible bash build bug?

2009-02-27 Thread George R. Goffe
Chet, No appreciable change in behavior... I added my script that I use to build all the free software I build to the beginning of the log. Regards, George... Chet Ramey wrote: George R. Goffe wrote: Howdy, I'm trying to build this bash version (4.0 rc1) and am having problems. I'm

Re: Possible bash build bug?

2009-02-27 Thread Chet Ramey
George R. Goffe wrote: Chet, No appreciable change in behavior... I added my script that I use to build all the free software I build to the beginning of the log. Take out the `--enable-static-link' and try again. Current Linux versions of libc cannot create static binaries that use

Re: functions, process substitution, bad file descriptor

2009-02-27 Thread Chet Ramey
Ben Hyde wrote: I ran into a problem using process substitution. A much reduced version is show below. The function f2 has the problem, the function f1 does not. Are there is some facts about the life cycle of the files created by process substitution I don't appreciate? - ben This will

Terminal state with read -st1

2009-02-27 Thread Chris F.A. Johnson
In bash4.0, the terminal is not reset if this is times out: read -st1 -- Chris F.A. Johnson, webmaster http://Woodbine-Gerrard.com === Author: Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)