From mboxrd@z Thu Jan 1 00:00:00 1970 From: lm at mcvoy.com (Larry McVoy) Date: Sun, 8 Jul 2018 17:56:59 -0700 Subject: [COFF] Other OSes? In-Reply-To: References: <20180705055650.GA2170@minnie.tuhs.org> <20180708165006.21a7429e@jabberwock.cb.piermont.com> Message-ID: <20180709005659.GO26072@mcvoy.com> On Sun, Jul 08, 2018 at 08:05:29PM -0400, Dan Cross wrote: > On Sun, Jul 8, 2018 at 7:28 PM Bakul Shah wrote: > > [...] > > I believe autocompletion has been available for 20+ years. IIRC, I > > switched to zsh in 1995 and it has had autocompletion then. But you > > do have to teach zsh/bash how to autocomplete for a given program. > > csh has had filename auto-completion since the late 70s or early 80s, > though nowhere as rich or as full-featured as bash/zsh, let alone TOPS-20. Yeah, I'm gonna go with what I learned about TOPS-20, I didn't know that, that's way way better than any auto complition I've seen on Unix. > This. Much of the issue with Unix was convention, or rather, lack of a > consistent convention. Proponents of DEC operating systems that I've known > decry that Unix can't do stuff like, `RENAME *.FTN *.FOR`, because the http://mcvoy.com/lm/move fixes that. Since around the late 80's. > main(argc, argv) > int argc; > char *argv[]; > { > if (--argc > 0 && *argv[1] == '-') { > argv++; > while (*++*argv) > switch (**argv) { > case 'a': > /* etc.... */ > continue; > } > } > /* And so on.... */ > > I mean, goodness: we didn't even use getopt(3)! It was all hand-rolled! And > thus inconsistent. Gotta agree with this one. Getopt should have been a thing from day one. We rolled our own that I like: http://repos.bkbits.net/bk/dev/src/libc/utils/getopt.c?PAGE=anno&REV=56cf7e34186wKr7L6Lpntw_hwahS0A