This website requires JavaScript.
CODE
0x495fab29
Explore
Sign in
forks
/
apenwarr-redo
Watch
1
Star
0
Fork
You've already forked apenwarr-redo
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
4e285607f0
apenwarr-redo
/
t
/
shelltest.do
8 lines
95 B
Text
Raw
Normal View
History
Unescape
Escape
Automatically select a good shell instead of relying on /bin/sh. This includes a fairly detailed test of various known shell bugs from the autoconf docs. The idea here is that if redo works on your system, you should be able to rely on a *good* shell to run your .do files; you shouldn't have to work around zillions of bugs like autoconf does.
2010-12-21 04:19:50 -08:00
set +e
( . ./shelltest.od )
RV=$?
case $RV in
shelltest: use a more magical magic number for success. There may be some odd situation where a shell returns 0 despite not executing the script correctly; now 0 is an error condition.
2011-04-17 23:39:53 -04:00
40) exit 0 ;;
Automatically select a good shell instead of relying on /bin/sh. This includes a fairly detailed test of various known shell bugs from the autoconf docs. The idea here is that if redo works on your system, you should be able to rely on a *good* shell to run your .do files; you shouldn't have to work around zillions of bugs like autoconf does.
2010-12-21 04:19:50 -08:00
42) exit 0 ;;
*) exit 1 ;;
esac
Reference in a new issue
Copy permalink