This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Shell portability question


On Sun, Sep 07, 2003 a.d., Daniel Jacobowitz wrote:
>     case $ac_arg in
>     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
>     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
>     | -silent | --silent | --silen | --sile | --sil)
>       continue ;;
>     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
>       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
>     esac
> 
> If ac_arg="'a\1b'", then that case statement matches using bash and doesn't
> using ash.  I'm not sure why.  But if you add a space to it, then ash eats

try changing it from:
	*" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
to:
	*" "*|*"    "*|*[\[\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*|*]*)

Regards,
Adi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]