I was having a problem with base_libs and possibly found a problem
with this test in base_libs.spec:


${TOOLCHAIN_PREFIX}gcc -v 2>&1 | grep -q "prefix=/usr"
if (( $? ))
then


so I wrote a test script:


$ cat tst
#!/bin/sh
if (( 1 )); then echo OK; fi

$ bash -x ./tst
+ ((  1  ))
+ echo OK
OK

$ dash -x ./tst
+ 1
./tst: 3: ./tst: 1: not found


Assuming I am right as I am not as familiar with dash as bash, how about?

if [ $? -eq 1 ]; then

Thanks

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to