From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,32c594a83e2d8db X-Google-Attributes: gidf7344,public X-Google-Thread: 114b0c,32c594a83e2d8db X-Google-Attributes: gid114b0c,public X-Google-Thread: 1164f8,32c594a83e2d8db X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-10-11 08:16:07 PST Xref: gmd.de comp.os.vms:32364 comp.sys.dec:10762 comp.sys.hp:26023 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!sol.ctr.columbia.edu!news.kei.com!newsstand.cit.cornell.edu!lns598.lns.cornell.edu!dsr From: dsr@lns598.tn.cornell.edu (Daniel S. Riley) Newsgroups: comp.os.vms,comp.sys.dec,comp.sys.hp Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice sought! Followup-To: comp.unix.user-friendly Date: 11 Oct 1993 14:26:51 GMT Organization: Wilson Lab, Cornell U., Ithaca, NY 14853 Message-ID: References: <1993Sep24.171336.19927@gordian.com> <1993Oct11.121043.12978@vms.eurokom.ie> NNTP-Posting-Host: lns596.lns.cornell.edu In-reply-to: Tom Wade VMS Systems's message of 11 Oct 93 12:10:43 CET On 11 Oct 93 12:10:43 CET, Tom Wade VMS Systems said: Wade> To me, this is one of the biggest deficiencies in the Unix Wade> shell: you can't abbreviate commands or options. Therefore the Wade> commands and more importantly the many options must be short to Wade> avoid long typing. Even worse, the getopt function requires a Wade> single character argument (note: I learned this in Wade> correspondence from a Unix guy - I have no experience with this) Wade> which gives rise to commands like ZIP with about 24 options, all Wade> single-characters with -V totally different to -v. Nitpicky point: no abbreviation of options is a limitation of the individual programs, not the shell--the shell just passes all the options onto the program. Substantive point: GNU getopt accepts long options (preceeded by '--') and lets you abbreviate as long as the abbreviation is unambiguous. For example, 'gzip --he' lists the options usage: gzip [-cdfhlLnrtvV19] [-S suffix] [file ...] -c --stdout write on standard output, keep original files unchanged -d --decompress decompress -f --force force overwrite of output file and compress links -h --help give this help -l --list list .gz file contents -L --license display software license -n --no-name do not save or restore the original name -q --quiet suppress all warnings -r --recurse recurse through directories -S .suf --suffix .suf use suffix .suf instead of .gz -t --test test compressed file integrity -v --verbose verbose mode -V --version display version number -1 --fast compress faster -9 --best compress better file... files to (de)compress. If none given, use standard input. there are other UNIX argument parsers that allow long options, but GNU getopt seems to be the most widely used. Finally, a plea: if you want to continue this thread, *please* respect the Follow-To: comp.unix.user-friendly, where this has just recently been discussed to death. -- -Dan Riley Internet: dsr@lns598.tn.cornell.edu -Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr) "Distance means nothing/To me." -Kate Bush