On Thu, 15 Feb 2007 07:17:03 -0800
Kapil Hari Paranjape <[EMAIL PROTECTED]> wrote:

> I think it would be better if this was not on by default but could be
> put on by a command-line switch like for "rm" or "mv".

That'd work.  BTW, as you must have noticed, my suggestion of a
'--force' switch has a flaw:

        # show 'force' switches for some utils
        % for f in mv cp dpkg pngcrush ; do x=`man $f 2> /dev/null | egrep -n 
-m 1 '^[[:space:]]*[-]{1,2}f.*orce.*'`; [ "$x" ] && echo "$f:  $x"  ; done
        mv:  24:       -f, --force
        cp:  32:       -f, --force
        dpkg:  313:       --force-things | --no-force-things | --refuse-things
        pngcrush:  116:       -force    Write a new output file even if larger 
than input.  Otherwise

...'pngcrush' already had a 'force' switch, used for a different
function.  Yet I'm still partial to the word 'force'; as can be
seen above 'dpkg' switches include hyphenated compound words, perhaps
it'd be feasible for 'pngcrush' to have:

        -F, --force-overwrite

But 'rm' or 'mv' would be fine too.

Minor worry: the hazard that a different syntax could break a script
that depends on the old syntax.  Seems safe, as according to 'gjig' no
other Debian packages depend on 'pngcrush', and only two packages
suggest it:

        pimppa
        sng



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to