[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14897: dd skip exit code
From: |
Pádraig Brady |
Subject: |
bug#14897: dd skip exit code |
Date: |
Thu, 18 Jul 2013 16:02:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
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.
- bug#14897: dd skip exit code, ffx, 2013/07/18
- bug#14897: dd skip exit code, Paul Eggert, 2013/07/18
- bug#14897: dd skip exit code,
Pádraig Brady <=
- bug#14897: dd skip exit code, Paul Eggert, 2013/07/18
- bug#14897: dd skip exit code, Pádraig Brady, 2013/07/18
- bug#14897: dd skip exit code, Paul Eggert, 2013/07/18
- bug#14897: dd skip exit code, Bernhard Voelker, 2013/07/18
- bug#14897: dd skip exit code, Pádraig Brady, 2013/07/18