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
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
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
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'
[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'
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
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