mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 11:16:16 +02:00
* NEWS: dd bs= operands now silently override later ibs= and obs=,
as POSIX requires. * src/dd.c (scanargs): Implement it. * tests/dd/misc (outbytes): Test it. * doc/coreutils.texi (dd invocation): Specify that bs=N overrides later ibs and obs, undoing part of the previous change. (The behavior was wrong.)
This commit is contained in:
committed by
Jim Meyering
parent
699188aa87
commit
f24ff8f42b
@@ -74,6 +74,9 @@ if dd oflag=nolinks if=$tmp_in of=$tmp_out 2> /dev/null; then
|
||||
dd oflag=nolinks < $tmp_in > $tmp_out 2>&1 || fail=1
|
||||
fi
|
||||
|
||||
outbytes=`echo x | dd bs=3 ibs=10 obs=10 conv=sync 2>/dev/null | wc -c`
|
||||
test "$outbytes" -eq 3 || fail=1
|
||||
|
||||
rm -f $tmp_in $tmp_in2 $tmp_sym $tmp_out
|
||||
|
||||
exit $fail
|
||||
|
||||
Reference in New Issue
Block a user