emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#14897: closed (dd skip exit code)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14897: closed (dd skip exit code)
Date: Thu, 18 Jul 2013 17:53:01 +0000

Your message dated Thu, 18 Jul 2013 18:52:20 +0100
with message-id <address@hidden>
and subject line Re: bug#14897: dd skip exit code
has caused the debbugs.gnu.org bug report #14897,
regarding dd skip exit code
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14897: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14897
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 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



--- End Message ---
--- Begin Message --- Subject: Re: bug#14897: dd skip exit code Date: Thu, 18 Jul 2013 18:52:20 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2
On 07/18/2013 04:50 PM, Paul Eggert wrote:
> On 07/18/13 08:02, Pádraig Brady wrote:
>> 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?
> 
> Yes, that makes sense.
> 
> It's not an error to seek past EOF, so it shouldn't be an error
> and the Solaris behavior is (in my opinion) not that useful.
> (At least, for regular files.  Not so sure about tapes.)

The attached patch allows one to set status=none to suppress all diagnostics.

thanks,
Pádraig.

Attachment: dd-suppress-warnings.patch
Description: Text Data


--- End Message ---

reply via email to

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