diff options
author | Jim Meyering <jim@meyering.net> | 2006-03-05 17:28:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-03-05 17:28:42 +0000 |
commit | 2467cad537ad521aeed5dc70c79d87a0d386c0ac (patch) | |
tree | 03d5921d07d004ceba1b9f198fb019e39ace277a /tests/help-version | |
parent | bda9edc1d5dc3cade42dd57ef33ffc88ad152ab2 (diff) | |
download | coreutils-2467cad537ad521aeed5dc70c79d87a0d386c0ac.tar.xz |
Set SHELL, if not already set, in order to
avoid failure when `make check' is run through debuild; dircolors
would fail due to lack of $SHELL. Reported by Sven Joachim.
Diffstat (limited to 'tests/help-version')
-rwxr-xr-x | tests/help-version | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/help-version b/tests/help-version index c96ca7e47..b3930626d 100755 --- a/tests/help-version +++ b/tests/help-version @@ -4,6 +4,14 @@ test "$VERBOSE" = yes && set -x +# Ensure that $SHELL is set to *some* value. +# This is required for dircolors, which would fail e.g., when +# invoked via debuild (which removes SHELL from the environment). +if test "x$SHELL" = x; then + SHELL=/bin/sh + export SHELL +fi + expected_failure_status_nohup=127 expected_failure_status_printenv=2 expected_failure_status_tty=3 |