Subject: | 'bundling' disables 'auto_abbrev' contrary to documentation |
As per the documentation these two options should be getting along
nicely: "... Note that, if you have options a, l and all, and
auto_abbrev enabled, possible arguments and option settings are...". In
fact bundling unconditionally disables auto_abbrev for single dash
options. Here is the output produced by the attached test program:
rabbit@Thesaurus:~$ ./getopt_tst -a -all --al --st -s
2.37 at ./getopt_tst line 8.
want a at ./getopt_tst line 21.
want a at ./getopt_tst line 21.
want l at ./getopt_tst line 21.
want l at ./getopt_tst line 21.
want all at ./getopt_tst line 21.
want stuff at ./getopt_tst line 21.
Unknown option: s
rabbit@Thesaurus:~$
rabbit@Thesaurus:~$ MULTIOPT=1 ./getopt_tst -a -all --al --st -s
2.37 at ./getopt_tst line 8.
want a at ./getopt_tst line 21.
want a at ./getopt_tst line 21.
want l at ./getopt_tst line 21.
want l at ./getopt_tst line 21.
want all at ./getopt_tst line 21.
want stuff at ./getopt_tst line 21.
want stuff at ./getopt_tst line 21.
rabbit@Thesaurus:~$
At the very least documentation should be fixed, although it would be
nice if the feature would actually work :)
Cheers
Peter
Subject: | getopt_tst |
Message body not shown because it is not plain text.