Searched refs:getopts (Results 1 – 15 of 15) sorted by relevance
/busybox-1.35.0/shell/ash_test/ash-getopts/ |
D | getopt_test_libc_bug.tests | 9 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 …]
|
D | getopt_simple.tests | 1 # 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 …]
|
D | getopt_silent.tests | 15 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'"
|
D | getopt_optarg.tests | 5 while getopts "w:et" var; do 14 while getopts "w:et" var; do
|
D | getopt_nested.tests | 2 # in getopts and unset. 11 while getopts "abc" var -a -bc -abc -def -a; do
|
D | getopt_positional.tests | 4 while getopts "we" var; do
|
/busybox-1.35.0/shell/hush_test/hush-getopts/ |
D | getopt_test_libc_bug.tests | 11 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 …]
|
D | getopt_simple.tests | 1 # 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 …]
|
D | getopt_silent.tests | 17 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'"
|
D | getopt_optarg.tests | 7 while getopts "w:et" var; do 16 while getopts "w:et" var; do
|
D | getopt_nested.tests | 2 # in getopts and unset. 11 while getopts "abc" var -a -bc -abc -def -a; do
|
D | getopt_positional.tests | 6 while getopts "we" var; do
|
/busybox-1.35.0/shell/ |
D | README | 20 getopts
|
D | ash.c | 11568 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/ |
D | posix_conformance.txt | 19 alias, bg, cd, fg, getopts, hash, jobs, read, type, umask, ulimit,
|