svn commit: trunk/busybox/testsuite
landley at busybox.net
landley at busybox.net
Thu Feb 16 09:00:58 UTC 2006
Author: landley
Date: 2006-02-16 01:00:57 -0800 (Thu, 16 Feb 2006)
New Revision: 14073
Log:
When setting an environment variable by piping something into grep, backquotes
can be useful. Also tweak an if case to be more portable.
Modified:
trunk/busybox/testsuite/testing.sh
Changeset:
Modified: trunk/busybox/testsuite/testing.sh
===================================================================
--- trunk/busybox/testsuite/testing.sh 2006-02-16 05:38:50 UTC (rev 14072)
+++ trunk/busybox/testsuite/testing.sh 2006-02-16 09:00:57 UTC (rev 14073)
@@ -42,9 +42,9 @@
optional()
{
- option="$OPTIONFLAGS" | egrep "(^|:)$1(:|\$)"
+ option=`echo "$OPTIONFLAGS" | egrep "(^|:)$1(:|\$)"`
# Not set?
- if [[ -z "$1" || -z "$OPTIONFLAGS" || ${#option} -ne 0 ]]
+ if [ -z "$1" ] || [ -z "$OPTIONFLAGS" ] || [ ${#option} -ne 0 ]
then
SKIP=""
return
More information about the busybox-cvs
mailing list