summaryrefslogtreecommitdiff
path: root/tests/ls/mk-script.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ls/mk-script.pl')
-rw-r--r--tests/ls/mk-script.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/ls/mk-script.pl b/tests/ls/mk-script.pl
index 0a8778512..ab2c6f112 100644
--- a/tests/ls/mk-script.pl
+++ b/tests/ls/mk-script.pl
@@ -71,11 +71,13 @@ sub spec_to_list ($$$)
return \%h;
}
-$| = 1;
+# ~~~~~~~ main ~~~~~~~~
+{
+ $| = 1;
-my $xx = $ARGV[0];
+ my $xx = $ARGV[0];
-print <<EOF;
+ print <<EOF;
#! /bin/sh
# This script was generated automatically by build-script.
case \$# in
@@ -89,7 +91,6 @@ test "\$srcdir" || srcdir=.
test "\$VERBOSE" && \$xx --version 2> /dev/null
EOF
-{
my %seen;
my $test_vector;