The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] 'Command subcommand ...' history
@ 2017-03-24 15:42 Tim Bradshaw
  2017-03-24 15:44 ` Larry McVoy
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tim Bradshaw @ 2017-03-24 15:42 UTC (permalink / raw)


Lots of tools now seem to use this strategy: there's some kind of wrapper which has its own set of commands (which in turn might have further subcommands).  So for instance

    git remote add ...

is a two layer thing.

Without getting into an argument about whether that's a reasonable or ideologically-correct approach, I was wondering what the early examples of this kind of wrapper-command approach were.  I think the first time I noticed it was CVS, which made you say `cvs co ...` where RCS & SCCS had a bunch of individual commands (actually: did SCCS?).  But I think it's possible to argue that ifconfig was an earlier example of the same thing.  I was thinking about dd as well, but I don't think that's the same: they're really options not commands I think.

Relatedly, does this style originate on some other OS?

--tim

(I realise that in the case of many of these things, particularly git, the wrapper is just dispatching to other tools that do the werk: it's the command style I'm interested in not how it's implemented.)


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [TUHS] 'Command subcommand ...' history
@ 2017-03-28 19:55 Doug McIlroy
  0 siblings, 0 replies; 6+ messages in thread
From: Doug McIlroy @ 2017-03-28 19:55 UTC (permalink / raw)


In some sense the "command subcommand" syntax dates from ar in v1,
though option flags were catenated with the mandatory subcommand.
The revolutionary notion that flags/subcommands might be denoted
by more than one letter originated at PWB (in "find", IIRC).

Doug


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

end of thread, other threads:[~2017-03-28 19:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-24 15:42 [TUHS] 'Command subcommand ...' history Tim Bradshaw
2017-03-24 15:44 ` Larry McVoy
2017-03-28  1:08   ` Clem Cole
2017-03-24 21:46 ` Arthur Krewat
2017-03-24 21:55 ` Paul Winalski
2017-03-28 19:55 Doug McIlroy

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).