bug-ddrescue
[Top][All Lists]
Advanced

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

Re: [Bug-ddrescue] Suggestions to rename "logfile"


From: Antonio Diaz Diaz
Subject: Re: [Bug-ddrescue] Suggestions to rename "logfile"
Date: Sat, 25 Jul 2015 19:35:33 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2

Scott Dwyer wrote:
Having to press return twice is about the worst idea suggested
here. How do you press return twice from inside a script? At least
using an option, or even a funny character, instead of the mapfile
is scriptable.

I think you missed where I said that only happens if you forget to
type the option on the command line.

Yes, sorry. But I have also said that I won't add an option to override the absence of the mapfile.


For instance, right now if a user forgets to add the option --force
when writing to a device, it stops and requires the command to be
re-entered with the proper option. I am only suggesting that instead
of exiting, it puts up a warning with the option to hit enter to
continue.

Exiting with nonzero status is ok for scripting, blocking ddrescue
waiting for a keystroke is not (unless requested with --ask, that is). When a command is incomplete, one expects the tool to exit, not to block:

$ cp in ; echo $?
cp: missing destination file operand after `in'
Try `cp --help' for more information.
1


Best regards,
Antonio.



reply via email to

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