Re: trap output piped to another program gives incomplete results

2010-04-09 Thread Siddhesh Poyarekar
On Sat, Apr 10, 2010 at 8:51 AM, Chet Ramey wrote: > On 3/31/10 1:45 AM, Siddhesh Poyarekar wrote: > >> Bash Version: 4.1 >> Patch Level: 2 >> Release Status: release >> >> Description: >>               When output of trap is piped to another command, say, less or >>               cat -, it shows

Re: trap output piped to another program gives incomplete results

2010-04-09 Thread Chet Ramey
On 3/31/10 1:45 AM, Siddhesh Poyarekar wrote: > Bash Version: 4.1 > Patch Level: 2 > Release Status: release > > Description: > When output of trap is piped to another command, say, less or > cat -, it shows only ignored signals. As the standard is currently written,

Re: declare -A a=b crashes bash

2010-04-09 Thread Chet Ramey
On 4/9/10 2:29 PM, Dennis van Dok wrote: > Andreas Schwab schreef: >> Andreas Schwab writes: >> >>> $ declare -A a=b; unset a >>> *** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 *** >> >> And the obvious patch: > > Thanks! > > So...this affects Ubuntu 9.10 > > https://bugs

Re: declare -A a=b crashes bash

2010-04-09 Thread Dennis van Dok
Andreas Schwab schreef: > Andreas Schwab writes: > >> $ declare -A a=b; unset a >> *** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 *** > > And the obvious patch: Thanks! So...this affects Ubuntu 9.10 https://bugs.launchpad.net/ubuntu/+source/bash/+bug/516974 Is the 4.0

Re: declare -A a=b crashes bash

2010-04-09 Thread Andreas Schwab
Andreas Schwab writes: > $ declare -A a=b; unset a > *** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 *** And the obvious patch: --- bash-4.1/builtins/declare.def.~1~ 2009-11-26 01:42:00.0 +0100 +++ bash-4.1/builtins/declare.def 2010-04-09 19:20:51.0

Re: declare -A a=b crashes bash

2010-04-09 Thread Andreas Schwab
"Chris F.A. Johnson" writes: > On Fri, 9 Apr 2010, Dennis van Dok 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' -DC

Re: How cd to a directory with special characters like environment\<\-?

2010-04-09 Thread Andreas Schwab
Greg Wooledge writes: > On Fri, Apr 09, 2010 at 11:59:20AM -0400, Chris F.A. Johnson wrote: >> On Fri, 9 Apr 2010, Marc Herbert wrote: >> > Le 08/04/2010 22:58, Peng Yu a ?crit : > >> > > $ mkdir environment\<\- >> > > $ cd environmen\<\- >> > > -bash: cd: environmen<-: No such file or directory

Re: How cd to a directory with special characters like environment\<\-?

2010-04-09 Thread Chris F.A. Johnson
On Fri, 9 Apr 2010, Greg Wooledge wrote: > On Fri, Apr 09, 2010 at 11:59:20AM -0400, Chris F.A. Johnson wrote: > > On Fri, 9 Apr 2010, Marc Herbert wrote: > > > Le 08/04/2010 22:58, Peng Yu a ?crit : > > > > > $ mkdir environment\<\- > > > > $ cd environmen\<\- > > > > -bash: cd: environmen<-: No

Re: How cd to a directory with special characters like environment\<\-?

2010-04-09 Thread Greg Wooledge
On Fri, Apr 09, 2010 at 11:59:20AM -0400, Chris F.A. Johnson wrote: > On Fri, 9 Apr 2010, Marc Herbert wrote: > > Le 08/04/2010 22:58, Peng Yu a ?crit : > > > $ mkdir environment\<\- > > > $ cd environmen\<\- > > > -bash: cd: environmen<-: No such file or directory > > In such situations I find c

Re: declare -A a=b crashes bash

2010-04-09 Thread Chris F.A. Johnson
On Fri, 9 Apr 2010, Dennis van Dok 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-pc-linux-gnu' > -DC

Re: How cd to a directory with special characters like environment\<\-?

2010-04-09 Thread Chris F.A. Johnson
On Fri, 9 Apr 2010, Marc Herbert wrote: > Le 08/04/2010 22:58, Peng Yu a ?crit : > > I make the following directory and try to cd to it. But I can't. Could > > you let me know what is the correct way of doing so? > > > > $ mkdir environment\<\- > > $ cd environmen\<\- > > -bash: cd: environmen<-:

declare -A a=b crashes bash

2010-04-09 Thread Dennis van Dok
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-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE

Re: How cd to a directory with special characters like environment\<\-?

2010-04-09 Thread Marc Herbert
Le 08/04/2010 22:58, Peng Yu a écrit : > I make the following directory and try to cd to it. But I can't. Could > you let me know what is the correct way of doing so? > > $ mkdir environment\<\- > $ cd environmen\<\- > -bash: cd: environmen<-: No such file or directory In such situations I find c