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
decl
Nicholas Mc Guire wrote:
probably errornous behavior:
when using compgen to allow shortcuts (in the below example for quit and
exit I get a strange behavior when no input is entered and write times
out after 5 seconds:
#! /bin/bash
read -p "timeout 5 > " -t 5 FOO
Russ Cox wrote:
This is correct (external echo):
$ /bin/echo hello world &0
/bin/echo: write error: Bad file descriptor
$ /bin/echo goodbye world
goodbye world
$
This is not (builtin echo):
$ echo hello world &0
bash: echo: write error: Bad file descriptor
$ echo goodbye world
hello world
good
[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' -DLO
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' -DLOCA
This is correct (external echo):
$ /bin/echo hello world &0
/bin/echo: write error: Bad file descriptor
$ /bin/echo goodbye world
goodbye world
$
This is not (builtin echo):
$ echo hello world &0
bash: echo: write error: Bad file descriptor
$ echo goodbye world
hello world
goodbye world
$
The s
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 somethin
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
[