Re: [patch] localdef.1: Add "Notice that -f and -c, are reversed from what you might expect.."

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

 



Hello Howard,

On 12/3/18 11:29 AM, Howard Johnson wrote:
Hi,

* I was reading the local-gen bash script, looking for why I'm getting locale errors, when I noticed that localdef's -f and -c options were named, in what I think, is a very confusing way.

    -c is the same as --force, and

    -f charmapfile is the same as --charmap=charmapfile.

Yes, it would have been better if they're names had been reversed, like this:

    -f is the same as --force, and

    -c charmapfile is the same as --charmap=charmapfile.

But given what they are, I thought it would be helpful to give a heads up to watch for their irregular naming.  I hope I've worded it appropriately.

* I'm not ccing this to anyone else, (i.e. developers, etc), as these features work as described in the man page.  They're just confusing.

* I think the man pages version is 4.17  (That's the git I just downloaded from from here:

    http://git.kernel.org/pub/scm/docs/man-pages/man-pages

Thanks. Patch applied.

Cheers,

Michael

--- localedef.1    2018-12-02 12:03:43.708319772 -1000
+++ localedef.1~    2018-12-02 11:56:44.400496581 -1000
@@ -144,7 +144,9 @@
  .BR \-\-no\-archive .
  .SS Other options
  Some of the following options are sensible only for certain operations;
-generally, it should be self-evident which ones.
+generally, it should be self-evident which ones.  Notice that -f and -c
+are reversed from what you might expect, i.e. -f is not the same as
+--force.
  .TP
  .BI \-f " charmapfile" "\fR, \fP\-\-charmap=" charmapfile
  Specify the file that defines the character set




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux