diff options
| author | Jari Aalto <jari.aalto@cante.net> | 2001-11-13 17:56:06 +0000 |
|---|---|---|
| committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:54 +0000 |
| commit | f73dda092b33638d2d5e9c35375f687a607b5403 (patch) | |
| tree | f21584e70a444d6a1ecba0fb5e2cf79e8cce91db /tests/execscript | |
| parent | 28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff) | |
| download | bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz | |
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'tests/execscript')
| -rw-r--r-- | tests/execscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/execscript b/tests/execscript index 749b733f..7eab4af0 100644 --- a/tests/execscript +++ b/tests/execscript @@ -1,6 +1,10 @@ export LC_ALL=C export LANG=C +if (( $UID == 0 )); then + echo "execscript: the test suite should not be run as root" >&2 +fi + set -- one two three echo before exec1.sub: "$@" echo calling exec1.sub @@ -40,6 +44,7 @@ echo $? . ${THIS_SH} 2>/dev/null echo $? +# post-bash-2.05 versions allow sourcing non-regular files . /dev/null echo $? |
