Re: Problem with function cd in bash 4.0

2009-02-24 Thread Bernd Eggink
Chet Ramey schrieb: Bernd Eggink wrote: I normally wrap the builtin cd into a function cd, which does some additional things and then calls the builtin. Example: function cd { local list=$(echo *.bui) # ... builtin cd $1 } I have a PS1 like this: PS1=\\w \$ With

Re: Behaviour of cd changed?

2009-02-24 Thread Chet Ramey
Bernd Eggink wrote: I'm still having problems with the cd builtin. In bash 3, the commands cd cd both changed to the user's home directory. In bash 4 (with patch save-current-token applied) cd does nothing. Bug or feature? I get the same behavior from bash-3.2.48 and

Re: Problem with function cd in bash 4.0

2009-02-24 Thread Chet Ramey
Richard Leeden wrote: Unfortunately doesn't work for me I'm doing something to Bernd - i.e. I have a function called cd that calls the builtin cd after doing some extra things. In bash 4.0 with my cd function enabled I get a bus error and the shell quits each time I attempt a tab

Re: Behaviour of cd changed?

2009-02-24 Thread Bernd Eggink
Chet Ramey schrieb: Bernd Eggink wrote: I'm still having problems with the cd builtin. In bash 3, the commands cd cd both changed to the user's home directory. In bash 4 (with patch save-current-token applied) cd does nothing. Bug or feature? I get the same behavior from

Incorrect alias substitution

2009-02-24 Thread Vincent Lefevre
I get the following errors with bash 3.2.39 under Debian/unstable: bash -c 'alias a=echo OK 2 a /dev/null a' bash: line 1: a: command not found bash: line 2: a: command not found $ bash --posix bash-3.2$ alias a=echo OK 2 bash-3.2$ a OK bash-3.2$ /dev/null a bash: a: command not found

Re: Incorrect alias substitution

2009-02-24 Thread Paul Jarc
Vincent Lefevre vinc...@vinc17.org wrote: I get the following errors with bash 3.2.39 under Debian/unstable: bash -c 'alias a=echo OK 2 a /dev/null a' bash: line 1: a: command not found bash: line 2: a: command not found aliases aren't expanded by a non-interactive bash by default. If

Re: Incorrect alias substitution

2009-02-24 Thread Vincent Lefevre
On 2009-02-24 19:32:05 -0500, Paul Jarc wrote: Vincent Lefevre vinc...@vinc17.org wrote: I get the following errors with bash 3.2.39 under Debian/unstable: bash -c 'alias a=echo OK 2 a /dev/null a' bash: line 1: a: command not found bash: line 2: a: command not found aliases

Re: Incorrect alias substitution

2009-02-24 Thread Mike Frysinger
On Tuesday 24 February 2009 21:14:46 Vincent Lefevre wrote: On 2009-02-24 19:32:05 -0500, Paul Jarc wrote: Vincent Lefevre vinc...@vinc17.org wrote: I get the following errors with bash 3.2.39 under Debian/unstable: bash -c 'alias a=echo OK 2 a /dev/null a' bash: line

Bash 4.0 Make error on cygwin

2009-02-24 Thread etienne botha
From: bot...@gmail.com To: bug-bash@gnu.org Subject: Make error Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin'

DEBUG trap breaks pipelines

2009-02-24 Thread lex
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'

siglist.c must #include bashintl.h

2009-02-24 Thread Greg Wooledge
siglist.c must #include bashintl.h -- bash 4.0 fails to build for me on HP-UX 10.20 with gcc, with unresolved symbol _ at final link time until I add that #include.

bash-4.0: parser complains on `| {}' statement

2009-02-24 Thread Evgeniy Zhemchugov
Configuration Information Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H

shl_load (old HP-UX) loadable support

2009-02-24 Thread wooledg
Configuration Information [Automatically generated, do not change]: Machine: hppa2.0 OS: hpux10.20 Compiler: /net/appl/gcc-3.3/bin/gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='hppa2.0' -DCONF_OSTYPE='hpux10.20' -DCONF_MACHTYPE='hppa2.0-hp-hpux10.20' -DCONF_VENDOR='hp'

coproc command doesn't accept NAME arg

2009-02-24 Thread Tim Hatch
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: darwin9.6.0 Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' - DCONF_OSTYPE='darwin9.6.0' -DCONF_MACHTYPE='i386-apple-darwin9.6.0' - DCONF_VENDOR='apple'

Re: coproc command doesn't accept NAME arg

2009-02-24 Thread Jan Schampera
Tim Hatch wrote: Pilot:~/tmp/bash-4.0 tim$ coproc NAME ls [1] 18474 Pilot:~/tmp/bash-4.0 tim$ ./bash: line 32: NAME: command not found [1]+ Exit 127coproc COPROC NAME ls For some reason it expects a compound command on named coprocesses,

bash stuck in a loop defining arrays

2009-02-24 Thread Pierre Gaston
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 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='openbsd4.4'