Check for "dd --".
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Sep 2004 01:45:48 +0000 (01:45 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Sep 2004 01:45:48 +0000 (01:45 +0000)
tests/dd/misc

index 1100f110ad5be0249831f2a3495afd4c7ed73ba0..436db47bdfcf3bc28d90c61b3e9f683d4e899d58 100755 (executable)
@@ -18,6 +18,10 @@ fi
 dd if=$tmp_in of=$tmp_out > /dev/null 2>&1 || fail=1
 cmp $tmp_in $tmp_out || fail=1
 
+rm $tmp_out
+dd -- if=$tmp_in of=$tmp_out > /dev/null 2>&1 || fail=1
+cmp $tmp_in $tmp_out || fail=1
+
 rm -f $tmp_in $tmp_out
 
 exit $fail