IFS=: breaks literal patterns with character classes

2009-10-16 Thread Enrique Perez-Terron
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' -DLOCALE DIR='/usr/share/locale' -DPA

Re: extglob problems in bash

2005-10-16 Thread Enrique Perez-Terron
On Sun, 16 Oct 2005 17:10:48 +0200, <[EMAIL PROTECTED]> posted on comp.unix.shell: I have a problem that I'm trying to solve with the help of extended globbing. It doesn't work, and so I've narrowed down the buggy bit to a simple, illustrative example. I need to match literal parentheses in a

What does extquote do

2005-10-16 Thread Enrique Perez-Terron
I am unable to make sense of the bash man-page description of the extquote shopt option. It says: extquote If set, $’string’ and $"string" quoting is performed within ${parameter} expansions enclosed in double quotes. This option is enabled by default. Can anybody come up with an ex

shopt extquote not working

2005-09-02 Thread Enrique Perez-Terron
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/

Ansi-C backslash expansion: $'n' in a double-quoted string adds single-quote newline single-quote

2005-09-02 Thread Enrique Perez-Terron
Hello, The command echo "${PATH//:/$'\n'}" yields /usr/bin' '/bin' '/usr/X11R6/bin while newline=$'\n' echo "${PATH//:/$newline}" yields /usr/bin /bin /usr/X11R6/bin Is this by intention? $ bash --version GNU bash, version 3.00.16(1)-release (i386-redhat-linux-gnu)