bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14897: dd skip exit code


From: ffx
Subject: bug#14897: dd skip exit code
Date: Thu, 18 Jul 2013 11:03:38 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hello

here is a small test I did

  bash$ > foo

  bash$ dd if=foo skip=10
  dd: `foo': cannot skip to specified offset
  0+0 records in
  0+0 records out
  0 bytes (0 B) copied, 0.000167556 s, 0.0 kB/s

  bash$ echo $?
  0

  bash$ dd if=bar skip=10
  dd: opening `bar': No such file or directory

  bash$ echo $?
  1

The test with bar is only to check that exit code can be set.
Is it the expected behaviour to have a success exit code when skip fails, even 
with the notice message "cannot skip..."?
I would rather expect dd to exit with an error code for the failed skip.

-- 
ffx





reply via email to

[Prev in Thread] Current Thread [Next in Thread]