Re: Cannot form valid test expressions that involve brackets as string comparison targets

2009-10-08 Thread Greg Wooledge
On Wed, Oct 07, 2009 at 08:07:19PM +1030, Lyall Pearce wrote: > Description: > Cannot form expressions which involve left or right brackets. Parentheses? > Repeat-By: > > basePic="(2008-04)" > if [ "${basePic:0:1}" = '(' -a "${basePic:4:1}" = ')' ] > then > echo "Got

Re: Cannot form valid test expressions that involve brackets as string comparison targets

2009-10-08 Thread Andreas Schwab
Lyall Pearce writes: > Repeat-By: > > basePic="(2008-04)" > if [ "${basePic:0:1}" = '(' -a "${basePic:4:1}" = ')' ] > then > echo "Got brackets" > fi case $basePic in "("???")"*) echo "Got brackets";; esac > Fix: > Unsure, I think the bracket parsing should

Re: Cannot form valid test expressions that involve brackets as string comparison targets

2009-10-07 Thread Chris F.A. Johnson
On Wed, 7 Oct 2009, Lyall Pearce wrote: > > Configuration Information [Automatically generated, do not change]: > Machine: i686 > OS: linux-gnu > Compiler: i686-pc-linux-gnu-gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-lin

Cannot form valid test expressions that involve brackets as string comparison targets

2009-10-07 Thread Lyall Pearce
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: i686-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/loca