Re: PROMPT_DIRTRIM skips depth n-1 when ~ is n

2009-11-28 Thread Chet Ramey
DennisW wrote: > On Nov 28, 5:25 am, "dennis" wrote: >> Configuration Information [Automatically generated, do not change]:Machine: >> i486OS: linux-gnuCompiler: gccCompilation CFLAGS: -DPROGRAM='bash' >> -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='lin$uname output: Linux emperor >> 2.6.31-14-generic #

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

2009-11-28 Thread pk
Chet Ramey wrote: > r...@saturn.syslang.net wrote: > >> Description: >> use of $(< filename | program) does not work. It either should or it >> should be properly documented. The problem also happens on bash4. >> >> Repeat-By: >> >> qq=$(< /etc/passwd | grep sys) >> echo $qq >> # result is null

Re: PROMPT_DIRTRIM skips depth n-1 when ~ is n

2009-11-28 Thread DennisW
On Nov 28, 5:25 am, "dennis" wrote: > Configuration Information [Automatically generated, do not change]:Machine: > i486OS: linux-gnuCompiler: gccCompilation CFLAGS:  -DPROGRAM='bash' > -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='lin$uname output: Linux emperor > 2.6.31-14-generic #48-Ubuntu SMP Fri Oct

Re: ESC SPC please

2009-11-28 Thread jidanni
PG> maybe try the following macro: PG> bind '"\M- ":"\M-\\ "' Sorry, that doesn't work on the command line or .inputrc. No effect.

Re: <( error

2009-11-28 Thread Chet Ramey
Antonio Macchi wrote: > $ hd <(echo -en \\0{0..3}{0..7}{0..7}) > > > it breaks the console. This was a bug in bash-3.2; fixed in bash-4.0. You hit it when you get close to exceeding the max number of open file descriptors using the /dev/fd version of process substitution. Chet -- ``The lyf so

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

2009-11-28 Thread Chet Ramey
r...@saturn.syslang.net wrote: > Description: > use of $(< filename | program) does not work. It either should or it > should be properly documented. > The problem also happens on bash4. > > Repeat-By: > > qq=$(< /etc/passwd | grep sys) > echo $qq > # result is nul

Re: Cannot build statically linked, working bash

2009-11-28 Thread Chet Ramey
tho...@koeller.dyndns.org wrote: > Description: > I failed at building a statically linked, working bash. First of all, > the only way to build is > by giving the '--with-bash-malloc=no' argument to configure, because > otherwise the linker will > complain about multiple de

Cannot build statically linked, working bash

2009-11-28 Thread thomas
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: /usr/gcc/bin/gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/us

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

2009-11-28 Thread DennisW
On Nov 28, 4:46 am, Andreas Schwab wrote: > Bernd Eggink writes: > > Am 28.11.2009 06:35, schrieb r...@saturn.syslang.net: > > >> Description: > >>        use of $(<  filename | program) does not work. It either should or > >> it should be properly documented. > >>        The problem also happen

Re: <( error

2009-11-28 Thread DennisW
On Nov 28, 8:44 am, Jan Schampera wrote: > Antonio Macchi schrieb: > > > $ hd <(echo -en \\0{0..3}{0..7}{0..7}) > > > it breaks the console. > > It doesn't "break the console", it crashes the shell (here with a > subshell to get the text): > > bon...@core:~$ bash > bon...@core:~$ hd <(echo -en \\0

Re: <( error

2009-11-28 Thread Jan Schampera
Antonio Macchi schrieb: > $ hd <(echo -en \\0{0..3}{0..7}{0..7}) > > > it breaks the console. > > It doesn't "break the console", it crashes the shell (here with a subshell to get the text): bon...@core:~$ bash bon...@core:~$ hd <(echo -en \\0{0..3}{0..7}{0..7}) malloc: ../bash/subst.c:419

Re: <( error

2009-11-28 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Antonio Macchi on 11/28/2009 6:57 AM: > but, if you don't have hd (hexdump) how can you see the content of a, POSIX requires the existence of od, and od can be used to emulate hexdump. You are very unlikely to find a system that lacks od

Re: <( error

2009-11-28 Thread Antonio Macchi
Also perhaps indicate what you want to achieve (I don't have an hd command, and didn't find a man page after a quick search) sorry.. i'll be more precise in future... but, if you don't have hd (hexdump) how can you see the content of a, for example, strange file i mean $ ls -l total 0 -rw-r

Re: <( error

2009-11-28 Thread Pierre Gaston
On Sat, 28 Nov 2009, Antonio Macchi wrote: $ hd <(echo -en \\0{0..3}{0..7}{0..7}) it breaks the console. The behaviour of bash with this construct has changed between 3.x and 4.x so maybe indicate the version you are using (or just use bug-bash) Also perhaps indicate what you want to ach

Re: ESC SPC please

2009-11-28 Thread Pierre Gaston
On Sat, 28 Nov 2009, jida...@jidanni.org wrote: 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-spa

<( error

2009-11-28 Thread Antonio Macchi
$ hd <(echo -en \\0{0..3}{0..7}{0..7}) it breaks the console.

PROMPT_DIRTRIM skips depth n-1 when ~ is n

2009-11-28 Thread dennis
Configuration Information [Automatically generated, do not change]:Machine: i486OS: linux-gnuCompiler: gccCompilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='lin$uname output: Linux emperor 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:2$Machine Type: i486-pc-linux-g

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

2009-11-28 Thread Andreas Schwab
Bernd Eggink writes: > Am 28.11.2009 06:35, schrieb r...@saturn.syslang.net: >> >> Description: >> use of $(< filename | program) does not work. It either should or it >> should be properly documented. >> The problem also happens on bash4. >> >> Repeat-By: >> >> qq=$(< /etc/pass

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

2009-11-28 Thread Bernd Eggink
Am 28.11.2009 06:35, schrieb r...@saturn.syslang.net: Description: use of $(< filename | program) does not work. It either should or it should be properly documented. The problem also happens on bash4. Repeat-By: qq=$(< /etc/passwd | grep sys) echo $qq