On 07/18/2013 03:40 PM, Paul Eggert wrote:
> On 07/18/2013 02:03 AM, ffx wrote:
>> Is it the expected behaviour to have a success exit code when skip fails, 
>> even with the notice message "cannot skip..."?
> 
> That's the change that was put in a few years ago, yes:
> 
> http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=460ebb078

Right that commit added the new warning in this case

> As the changelog says, POSIX doesn't say what to do in this situation.

Right the code portion from the above commit explaining this is:

/* POSIX doesn't say what to do when dd detects it has been
   asked to skip past EOF, so I assume it's non-fatal.
   There are 3 reasons why there might be unskipped blocks/bytes:
     1. file is too small
     2. pipe has not enough data
     3. short reads   */

Hmm I wonder since this is informational, should it be suppressed with 
status=none
status=none was added recently and I'm leaning towards it
also supressing informational warnings like this?

> Traditional 'dd' (e.g., Solaris 11.1) exits with status 3 (!).

Interesting.

thanks,
Pádraig.



Reply via email to