diff options
author | Jim Meyering <jim@meyering.net> | 2003-04-08 10:55:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-04-08 10:55:01 +0000 |
commit | c54ba76168aa7519087d32f9c8f0b739a6420b4b (patch) | |
tree | efce3525f29e52ef825446799aa9881b1910c14f /tests/dd/skip-seek | |
parent | 5d425f8eedcfe909a773e2ecfc72b721276ff38b (diff) | |
download | coreutils-c54ba76168aa7519087d32f9c8f0b739a6420b4b.tar.xz |
Run $PERL to see if it is available, rather than testing its value.
Diffstat (limited to 'tests/dd/skip-seek')
-rwxr-xr-x | tests/dd/skip-seek | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/dd/skip-seek b/tests/dd/skip-seek index 97345a9cc..ecec6b915 100755 --- a/tests/dd/skip-seek +++ b/tests/dd/skip-seek @@ -3,12 +3,11 @@ : ${PERL=perl} : ${srcdir=.} -case "$PERL" in - *'missing perl') - echo 1>&2 "$0: configure didn't find a usable version of Perl, so can't run this test" +$PERL -e 1 > /dev/null 2>&1 || { + echo 1>&2 "$0: configure didn't find a usable version of Perl," \ + "so can't run this test" exit 77 - ;; -esac +} SCRIPT_NAME=$0 export SCRIPT_NAME |