hush: implement "silent" optstrings of ":opts"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2017-08-11 17:21:14 +02:00
parent 129e1ce72c
commit 419db0391e
5 changed files with 89 additions and 17 deletions

View File

@@ -0,0 +1,6 @@
*** optstring:':ac' args:-a -b -c
1 rc:0 var:'a' OPTIND:2 OPTARG:''
2 rc:0 var:'?' OPTIND:3 OPTARG:'b'
3 rc:0 var:'c' OPTIND:4 OPTARG:''
4 rc:1 var:'?' OPTIND:4 OPTARG:''
5 rc:1 var:'?' OPTIND:4 OPTARG:''