mirror of
https://github.com/opnsense/src.git
synced 2026-03-31 15:05:17 -04:00
Preserving $? may cause problems particularly if set -e is in effect. It may be useful to preserve the old value of $? in the dot script but this must not be implemented in such a way that it would break this test.
10 lines
115 B
Text
10 lines
115 B
Text
# $FreeBSD$
|
|
|
|
# . should return 0 if no command was executed.
|
|
|
|
if false; then
|
|
exit 3
|
|
else
|
|
. /dev/null
|
|
exit $?
|
|
fi
|