The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Re: Of flags and keyletters
@ 2024-03-02 22:14 Noel Chiappa
  2024-03-03 17:38 ` Aaron
  0 siblings, 1 reply; 6+ messages in thread
From: Noel Chiappa @ 2024-03-02 22:14 UTC (permalink / raw)
  To: tuhs; +Cc: jnc

    > From: Bakul Shah

    > Use of "flag" for this purpose seems strange. "option" makes more sense.

People on this list seem to forget that there were computers before UNIX.

The _syntax_ of "-f" probably predates any UNIX; Multics used it extensively.
See the "Introduction to Multics", MAC-TR-123, January 1974 (a little after
UNIX V1, but I expect I could probably track it back further in time, if I
cared to put in the effort); pg. 3-24.

Interestingly, I looked though the CTSS manual, and CTSS did not seem to use
this syntax for flag arguments: see, e.g., the SAVE command (section AH.3.03).


The _name_ "flag" came in early on UNIX. (Multics called them "arguments";
see above, pg. 3-27, top line.) We can see this happen - see:

  http://squoze.net/UNIX/v1man/man1/du

which calls the "-a" and "-s" "arguments"; but in:

  http://squoze.net/UNIX/v1man/man1/ld

"-s", "-u", etc are called "flag arguments".

Long enough ago that certainty about the etymology/rationale is probably now
lost.

	Noel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-03 21:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-02 22:14 [TUHS] Re: Of flags and keyletters Noel Chiappa
2024-03-03 17:38 ` Aaron
2024-03-03 17:52   ` Larry McVoy
2024-03-03 19:28     ` Aaron
2024-03-03 18:44   ` [TUHS] Re: getopt Phil Budne
2024-03-03 21:24   ` [TUHS] Re: Of flags and keyletters Rich Salz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).