coreutils
[Top][All Lists]
Advanced

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

Re: Short option for rm --interactive=never


From: L A Walsh
Subject: Re: Short option for rm --interactive=never
Date: Fri, 30 Oct 2020 17:19:03 -0700
User-agent: Thunderbird

On 2020/10/29 05:59, David Hesselbom wrote:
Dear coreutils maintainers,

Quoting rm.c itself:

  enum interactive_type
  {
    interactive_never, /* 0: no option or --interactive=never */
    interactive_once, /* 1: -I or --interactive=once */
    interactive_always /* 2: default, -i or --interactive=always */
  };

interactive_once and interactive_always have short options, so why
doesn't interactive_never have one, say "-n"?
Seems like
 "-In"
might make more sense for the 'never' case
though that should imply that -in = 'never' as well

"-Io" (letter "o"), but could also have "-I1" for one-time, leading to
"-I<##>" (general case). Ex.: "-I3" -- do interactive 3 times before going to
auto.  No reason(?) same suffixes couldn't be added to "-i", i.e.
-in, -io -i3 -ia,
of course for backwards compat, both -i/-I would need to keep present meaning
though one of them might be 'deprecated' for future use...?

-n seems like it might "belong" to "always answer 'no'" to mean "no action"?

Some possibilities -- though from a visual perspective, I like using
the capital -I<op>
more than   -i<op> to stand out more from the actual 'op'.







reply via email to

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