[Info-vax] STARTREK.BCK Restore - How?

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Wed Jun 12 13:41:43 EDT 2019


On 2019-06-12, Phillip Helbig (undress to reply) <helbig at asclothestro.multivax.de> wrote:
> In article <qdqrnc$tkn$1 at dont-email.me>, Simon Clubley
><clubley at remove_me.eisner.decus.org-Earth.UFP> writes: 
>> It has been multiple decades since you were forced to use single characters
>> to supply options under Unix. Now you have the best of both worlds; in many
>> programs you can either use a single character for common options (if you
>> wish) or a longer option name for all options.
>
> Right, but some of the long options are really long, and can't be 
> abbreviated, and can't be overwritten by specifying them again later on 
> the command line.  Correct me if I am wrong.
>

As hb has just pointed out with an example, you can indeed abbreviate
long options. It depends on the library you use obviously, but
getopt_long() has documented support for this:

https://linux.die.net/man/3/getopt_long

As you can see in the example hb posted, you can get much more useful
output than you do under VMS when you don't type enough characters.

As for your second statement, you will have to try out getopt_long()
and see what happens if that matters to you as it's not something I have
ever needed to do.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world



More information about the Info-vax mailing list