Use of pipe in $(< filename | program) returns null

2009-11-27 Thread root
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPAC

ESC SPC please

2009-11-27 Thread jidanni
Please implement emacs' M-SPC (translated from SPC) runs the command just-one-space, which is an interactive compiled Lisp function in `simple.el'. I mean you already implement M-\ (translated from \) runs the command delete-horizontal-space, which is an interactive compiled Lisp fun

Array parameter expansion with non-space-IFS on bash-3/4

2009-11-27 Thread Freddy Vulto
I noticed different behaviour between bash-3 and bash-4 when performing parameter expansion on an array with IFS set to a non-space value. For example, on bash-3.2.39, I get: $ bash -c 'IFS=:; printf "<%s>\n" "${@/q}"' x a b Whereas on bash-4.0.33, I get: $ bash -c 'IFS=:; printf "

Re: bash 3.2.39 -- race condition

2009-11-27 Thread Chet Ramey
Douglas Moyes wrote: > I nearly brought down a server today. > > # alias d="perl-script " > > > # d() { > # perl-script $1 |grep something|cut -d ' ' -f 3 > # } > # d something > . . CRASH > > turns out bash went into a loop calling d over and over again, which > resulted in th

Re: Trouble with 'o' in bash

2009-11-27 Thread Chet Ramey
Joyce Cheng wrote: > Hi all, > > I am experiencing trouble with the character 'o' in bash-4.0 after a > recompilation. It refuses to show up both when I type it, and when I > paste in something with o's. However, I am able to get some o's with the > completion feature of Bash. > > I know