Hi all,
Installing gildas package using fink (version: 0.28.5) fails with the
following error message:
--
/var/tmp/tmp.1.Ynx6kD: admin/gildas-env.sh: line 110: conditional
binary operator expected
### execution of /var/tmp/tmp.1.Ynx6kD failed, exit code 2
--
The corresponding line in gildas-env.sh reads:
--
if [[ $1 =~ "^no_" ]]; then
--
Trying something similar on the command line fails with the same
error message on my box (PowerPC G5, OS X 10.4.11):
--
golden:~ baudit$ toto=no_debug
golden:~ baudit$ echo $toto
no_debug
golden:~ baudit$ if [[ $toto =~ "^no_" ]]; then echo OK; fi;
bash: conditional binary operator expected
bash: syntax error near `=~'
--
BUT not on a linux box:
--
[EMAIL PROTECTED]:~$ toto=no_debug
[EMAIL PROTECTED]:~$ echo $toto
no_debug
[EMAIL PROTECTED]:~$ if [[ $toto =~ "^no_" ]]; then echo OK; fi;
OK
--
This could be that bash was no configure with option --enable-cond-
regexp ("Include support for matching POSIX regular expressions using
the ‘=~’ binary operator in the [[ conditional command.") on OS X ?
Does anyone know about a way around this problem ?
Thanks,
Benjamin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners