> From: Akim Demaille <[EMAIL PROTECTED]> > Date: 10 Nov 2000 10:23:25 +0100 > > But our troubles could be worse than this, since `expr' is not used > only in AS_DIRNAME. For instance any CVS configure contains > > ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` Ouch. Can you rewrite that as follows to work around the bug? # Work around the problem that "expr 'a' : 'a\(\)'" outputs "0" in QNX. case "$ac_option" in *=*=) ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`;; *=) ac_optarg= ;; *=*) ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`;; *) ac_optarg= ;; esac
- Re: AS_DIRNAME and expr Paul Eggert
- Re: AS_DIRNAME and expr David Morgan
- Re: AS_DIRNAME and expr Paul Eggert
- Re: AS_DIRNAME and expr Akim Demaille
- Re: AS_DIRNAME and expr Akim Demaille
- Re: AS_DIRNAME and expr Paul Eggert
- Re: AS_DIRNAME and expr Paul Eggert
- Re: AS_DIRNAME and expr Alexandre Oliva
- Re: AS_DIRNAME and expr Paul Eggert
- Re: AS_DIRNAME and expr Akim Demaille
- Re: AS_DIRNAME and expr David Morgan
- Re: AS_DIRNAME and expr Paul Berrevoets
- Re: AS_DIRNAME and expr Akim Demaille
- Re: AS_DIRNAME and expr Paul Eggert
- Re: AS_DIRNAME and expr Paul Berrevoets
- Re: AS_DIRNAME and expr Akim Demaille