possible compgen bug

2008-05-10 Thread Nicholas Mc Guire
HI ! problem: compgen assigns first option on receiving an empty string as input (i.e. by read -t 5 VAR timing out) systems and OS: X86 (Duron and Sempron) Debian etch: [EMAIL PROTECTED]:~/shell$ uname -a Linux backup 2.6.18-hpt374 #4 SMP Thu Mar 20 00:07:28 CET 2008 i686 GNU/Linux

load small history file after append breaks further appending

2008-05-10 Thread Scott Mcdermott
I've been implementing something in my shell where I'm using multiple history files, and I switch between them. This changes the shell's identity, to basically swap its history file with another. This is being used to have per-project histories. The procedure I am using to switch is something

builtin echo buffers failed writes

2008-05-10 Thread Russ Cox
This is correct (external echo): $ /bin/echo hello world /dev/null 10 /bin/echo: write error: Bad file descriptor $ /bin/echo goodbye world goodbye world $ This is not (builtin echo): $ echo hello world /dev/null 10 bash: echo: write error: Bad file descriptor $ echo goodbye world hello world

Re: set -e's bug

2008-05-10 Thread Chet Ramey
Hiroshi Fujishima wrote: Configuration Information [Automatically generated, do not change]: Machine: i386 OS: freebsd7.0 Compiler: cc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='freebsd7.0' -DCONF_MACHTYPE='i386-portbld-freebsd7.0' -DCONF_VENDOR='portbld'

Re: Memory leak when catting(/sedding/...) large binary files with backticks

2008-05-10 Thread Chet Ramey
[EMAIL PROTECTED] wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat'

Re: builtin echo buffers failed writes

2008-05-10 Thread Chet Ramey
Russ Cox wrote: This is correct (external echo): $ /bin/echo hello world /dev/null 10 /bin/echo: write error: Bad file descriptor $ /bin/echo goodbye world goodbye world $ This is not (builtin echo): $ echo hello world /dev/null 10 bash: echo: write error: Bad file descriptor $ echo goodbye

Re: export -p may output invalid variables

2008-05-10 Thread Chet Ramey
Stephane Chazelas wrote: Bash Version: 3.2 Patch Level: 33 Release Status: release Description: ~$ env -i '1=a' sh -c 'export -p' export 1=a export OLDPWD export PWD=/home/chazelas export SHLVL=1 ~$ env -i '1=a' bash -c 'export -p' declare -x 1=a declare -x OLDPWD declare -x