summaryrefslogtreecommitdiff
path: root/tests/misc/cut
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/cut')
-rwxr-xr-xtests/misc/cut3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/misc/cut b/tests/misc/cut
index 64c3dd8d2..40ae2cb31 100755
--- a/tests/misc/cut
+++ b/tests/misc/cut
@@ -25,7 +25,8 @@ $PERL -e 1 > /dev/null 2>&1 || {
exit 77
}
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\FILE_EOF
+me=`echo $0|sed 's,.*/,,'`
+exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\FILE_EOF
require 5.003;
use strict;