Re: [Parameter substring expansion not work for negative offset]

2013-09-09 Thread Frantisek Hanzlik
Greg Wooledge wrote: > On Sun, Sep 08, 2013 at 11:21:56AM -0500, Dennis Williamson wrote: >> The man page says "Note that a negative offset must be separated from the >> colon by at least one space..." > > Enclosing the negative offset in parentheses also works. > > The reason you must use either

Re: [Parameter substring expansion not work for negative offset]

2013-09-09 Thread Greg Wooledge
On Sun, Sep 08, 2013 at 11:21:56AM -0500, Dennis Williamson wrote: > The man page says "Note that a negative offset must be separated from the > colon by at least one space..." Enclosing the negative offset in parentheses also works. The reason you must use either parentheses or spaces between th

Re: [Parameter substring expansion not work for negative offset]

2013-09-08 Thread Dennis Williamson
On Sep 8, 2013 10:44 AM, "hanzlik" wrote: > > Configuration Information: > Machine: i686 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/l

[Parameter substring expansion not work for negative offset]

2013-09-08 Thread hanzlik
Configuration Information: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I