[TUHS] Of flags and keyletters

Warner Losh imp at bsdimp.com
Sun Mar 3 04:35:52 AEST 2024


On Sat, Mar 2, 2024, 11:24 AM Paul Winalski <paul.winalski at gmail.com> wrote:

> On 3/1/24, Bakul Shah via TUHS <tuhs at tuhs.org> wrote:
> >
> > Use of "flag" for this purpose seems strange. "option" makes more sense.
>
> I think the term "flag" for command line options comes from the way
> that those options are typically implemented in code.  The command
> line options are usually used to set a boolean variable in the program
> that can be tested to see if the option was present.
>
> "Flag" as a synonym for a boolean variable in turn comes from the
> ordinary English verb "to flag", meaning "to mark or identify"
>

And the variables set were named Xflag.

Warner

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20240302/1ca743f1/attachment.htm>


More information about the TUHS mailing list