Spaces in args, escapes, and command substitution

2006-10-24 Thread bash
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: i386-redhat-linux-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/s

Empty sub-string expansion bug

2006-10-24 Thread David Purdy
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash

Re: Spaces in args, escapes, and command substitution

2006-10-24 Thread Andreas Schwab
[EMAIL PROTECTED] writes: > For example, "vi `grep -l *.c`" is fine so long as there are no spaces > in the *.c filenames. But if there are, then the split on space > that command subsitution does messes everything up. > > Given that "grep -l" outputs newline-delimited result then

Re: Empty sub-string expansion bug

2006-10-24 Thread Chet Ramey
David Purdy wrote: > Bash Version: 3.1 > Patch Level: 17 > Release Status: release > > Description: > Substring operations that are meant to return an empty string "" > sometimes return character "\177" instead. > [...] > Fix: > Bash script work-around: Use an int

Re: Problem with echo -e in bash 3.2

2006-10-24 Thread Jochen Roderburg
Zitat von Chet Ramey <[EMAIL PROTECTED]>: > Actually, I am discouraged that applications were not written to use the > portable `printf'. Use of `echo' in portable applications has been > deprecated for years. > > It's hindsight, of course, but had mc been written (or modified later) > to use pri

Re: Spaces in args, escapes, and command substitution

2006-10-24 Thread bash
> >> For example, "vi `grep -l *.c`" is fine so long as there are no spaces >> in the *.c filenames. But if there are, then the split on space >> that command subsitution does messes everything up. >> >> Given that "grep -l" outputs newline-delimited result then surely there >>