Getting value out of "man getopts"

Quartz quartz at sneakertech.com
Mon Aug 3 21:05:38 UTC 2015


> My getopts man page says there is no 'getopts' under csh .... 9.3R-p20,
> YMMV, IANAL & all that rot ....

One of the many problems with csh is that early versions were super 
buggy and unstable, but people couldn't get their act together so 
everybody made their own forks and patched stuff themselves. By today's 
point there are like half a dozen different flavors of csh that are all 
slightly different and it's not always clear which version you have. 
IIRC most flavors of csh don't have getopts as a built-in, but I've seen 
a couple that sort of hack it in their own way. I've not messed with the 
csh in FreeBSD that much so I don't know off the top of my head what it 
can do.


More information about the freebsd-questions mailing list