Home
last modified time | relevance | path

Searched refs:getopts (Results 1 – 15 of 15) sorted by relevance

/busybox-1.35.0/shell/ash_test/ash-getopts/
Dgetopt_test_libc_bug.tests9 getopts "ac" var -a -b -c -d e; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
10 getopts "ac" var -a -b -c -d e; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
11 getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
12 getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
13 getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
21 OPTARG=QWERTY; getopts "ac" var -a -b -c -d e; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
22 NEWVAR=NEWVAL; getopts "ac" var -a -b -c -d e; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
23 VAR111=NEWVAL; getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
24 VAR222=NEWVAL; getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
25 VAR333=NEWVAL; getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
[all …]
Dgetopt_simple.tests1 # Simple usage cases for getopts.
3 # OPTIND is either not touched at all (first loop with getopts,
4 # relying on shell startup init), or getopts state is reset
8 # needs only $OPTIND to hold getopts state.
15 while getopts "ab" var -a -b c; do
24 while getopts "ab" var -a -b c; do
32 while getopts "ab" var -a -b c; do
40 while getopts "ab" var -a -b c; do
48 getopts "ab" var -a -b c; echo "1 rc:$? var:'$var' OPTIND:$OPTIND"
49 getopts "ab" var -a -b c; echo "2 rc:$? var:'$var' OPTIND:$OPTIND"
[all …]
Dgetopt_silent.tests15 getopts ":ac" var -a -b -c; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
16 getopts ":ac" var -a -b -c; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
17 getopts ":ac" var -a -b -c; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
18 getopts ":ac" var -a -b -c; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
20 # in getopts loops as exit condition.
23 getopts ":ac" var -a -b -c; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
Dgetopt_optarg.tests5 while getopts "w:et" var; do
14 while getopts "w:et" var; do
Dgetopt_nested.tests2 # in getopts and unset.
11 while getopts "abc" var -a -bc -abc -def -a; do
Dgetopt_positional.tests4 while getopts "we" var; do
/busybox-1.35.0/shell/hush_test/hush-getopts/
Dgetopt_test_libc_bug.tests11 getopts "ac" var -a -b -c -d e; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
12 getopts "ac" var -a -b -c -d e; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
13 getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
14 getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
15 getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
23 OPTARG=QWERTY; getopts "ac" var -a -b -c -d e; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
24 NEWVAR=NEWVAL; getopts "ac" var -a -b -c -d e; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
25 VAR111=NEWVAL; getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
26 VAR222=NEWVAL; getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
27 VAR333=NEWVAL; getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT…
[all …]
Dgetopt_simple.tests1 # Simple usage cases for getopts.
3 # OPTIND is either not touched at all (first loop with getopts,
4 # relying on shell startup init), or getopts state is reset
8 # needs only $OPTIND to hold getopts state.
17 while getopts "ab" var -a -b c; do
26 while getopts "ab" var -a -b c; do
34 while getopts "ab" var -a -b c; do
42 while getopts "ab" var -a -b c; do
50 getopts "ab" var -a -b c; echo "1 rc:$? var:'$var' OPTIND:$OPTIND"
51 getopts "ab" var -a -b c; echo "2 rc:$? var:'$var' OPTIND:$OPTIND"
[all …]
Dgetopt_silent.tests17 getopts ":ac" var -a -b -c; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
18 getopts ":ac" var -a -b -c; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
19 getopts ":ac" var -a -b -c; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
20 getopts ":ac" var -a -b -c; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
22 # in getopts loops as exit condition.
25 getopts ":ac" var -a -b -c; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
Dgetopt_optarg.tests7 while getopts "w:et" var; do
16 while getopts "w:et" var; do
Dgetopt_nested.tests2 # in getopts and unset.
11 while getopts "abc" var -a -bc -abc -def -a; do
Dgetopt_positional.tests6 while getopts "we" var; do
/busybox-1.35.0/shell/
DREADME20 getopts
Dash.c11568 getopts(char *optstr, char *optvar, char **optfirst) in getopts() function
11689 return getopts(argv[1], argv[2], optbase); in getoptscmd()
/busybox-1.35.0/docs/
Dposix_conformance.txt19 alias, bg, cd, fg, getopts, hash, jobs, read, type, umask, ulimit,