[Top][All Lists]

[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)


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 $?

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

  bash$ echo $?

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.


reply via email to

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