to start with `---'.
{IN=>$input}, {OUT=>$output}];
push @Tests, $t;
my @u = @$t;
- # Insert the --presume-input-pipe option.
+ # Insert the ---presume-input-pipe option.
$u[0] .= 'p';
- $u[1] .= ' --presume-input-pipe';
+ $u[1] .= ' ---presume-input-pipe';
push @Tests, \@u;
}
}
{IN=>$input}, {OUT=>$output}];
push @Tests, $t;
my @u = @$t;
- # Insert the --presume-input-pipe option.
+ # Insert the ---presume-input-pipe option.
$u[0] .= 'p';
- $u[1] .= ' --presume-input-pipe';
+ $u[1] .= ' ---presume-input-pipe';
push @Tests, \@u;
}
}
fail=0
-rm --presume-input-tty dangle symlink &
+rm ---presume-input-tty dangle symlink &
pid=$!
# The buggy rm (fileutils-4.1.9) would hang here, waiting for input.
fail=0
# For rm from coreutils-5.0.1, this would prompt.
-rm --presume-input-tty unwritable-dir < /dev/null > out-t 2>&1 && fail=1
+rm ---presume-input-tty unwritable-dir < /dev/null > out-t 2>&1 && fail=1
cat <<\EOF > exp || fail=1
rm: cannot remove `unwritable-dir': Is a directory
EOF
touch f
chmod 0 f
-rm --presume-input-tty f > out 2>&1 &
+rm ---presume-input-tty f > out 2>&1 &
pid=$!
# Wait a second, to give a buggy rm (as in fileutils-4.0.40)