Home
last modified time | relevance | path

Searched refs:var (Results 1 – 25 of 90) sorted by relevance

1234

/busybox-1.35.0/shell/ash_test/ash-vars/
Dvar_posix1.tests1 unset var
3 echo Empty:${var#}
4 echo Empty:${var##}
5 echo Empty:${var#*}
6 echo Empty:${var##*}
7 echo Empty:${var%}
8 echo Empty:${var%%}
9 echo Empty:${var%*}
10 echo Empty:${var%%*}
12 var=
[all …]
Dvar_bash1.tests1 var=abcdef
3 echo ${var:7}
4 echo ${var:6}
5 echo ${var:5}
6 echo ${var:1}
7 echo ${var:0}
8 echo ${var:-1}
10 echo ${var:1:4}
11 echo ${var:0:4}
12 echo ${var::4}
[all …]
Dvar_bash2.tests1 var=abc123dcba123
3 echo ${var/d/x}
4 echo ${var/c/x}
5 echo ${var//c/x}
6 echo ${var/[123]/x}
7 echo ${var//[123]/x}
8 echo ${var/c*/x}
9 echo ${var/*c/x}
12 echo ${var/c*1/x}
15 echo ${var/[123]}
[all …]
/busybox-1.35.0/shell/hush_test/hush-vars/
Dvar_posix1.tests1 unset var
3 echo Empty:${var#}
4 echo Empty:${var##}
5 echo Empty:${var#*}
6 echo Empty:${var##*}
7 echo Empty:${var%}
8 echo Empty:${var%%}
9 echo Empty:${var%*}
10 echo Empty:${var%%*}
12 var=
[all …]
Dvar_bash1.tests1 var=abcdef
3 echo ${var:7}
4 echo ${var:6}
5 echo ${var:5}
6 echo ${var:1}
7 echo ${var:0}
8 echo ${var:-1}
10 echo ${var:1:4}
11 echo ${var:0:4}
12 echo ${var::4}
[all …]
Dvar_bash2.tests1 var=abc123dcba123
3 echo ${var/d/x}
4 echo ${var/c/x}
5 echo ${var//c/x}
6 echo ${var/[123]/x}
7 echo ${var//[123]/x}
8 echo ${var/c*/x}
9 echo ${var/*c/x}
12 echo ${var/c*1/x}
15 echo ${var/[123]}
[all …]
/busybox-1.35.0/examples/
Dmk2knr.pl39 $var = $1;
42 next if ($var =~ /BusyBox/);
45 $convert++ if ($var =~ /^[a-z]+[A-Z][a-z]+/);
48 $convert++ if ($var =~ /^[A-Z][a-z]+[A-Z][a-z]+/);
57 next if ($converted{$var});
60 $converted{$var} = 1;
62 print CM "s/\\b$var\\b/"; # more to come in just a minute
65 $var = lcfirst($var);
68 $var =~ s/([A-Z])/_$1/g;
71 $var = lc($var);
[all …]
/busybox-1.35.0/shell/ash_test/ash-getopts/
Dgetopt_simple.right2 var:'a' OPTIND:2
3 var:'b' OPTIND:3
4 exited: rc:0 var:'?' OPTIND:3
6 var:'a' OPTIND:2
7 var:'b' OPTIND:3
8 exited: rc:0 var:'?' OPTIND:3
10 var:'a' OPTIND:2
11 var:'b' OPTIND:3
12 exited: rc:0 var:'?' OPTIND:3
14 var:'a' OPTIND:2
[all …]
Dgetopt_nested.right1 var:a
2 var:b
3 var:c
4 var:a
5 var:b
6 var:c
8 var:?
10 var:?
12 var:?
13 var:a
[all …]
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.tests14 var=QWERTY
15 while getopts "ab" var -a -b c; do
16 echo "var:'$var' OPTIND:$OPTIND"
19 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"
24 while getopts "ab" var -a -b c; do
25 echo "var:'$var' OPTIND:$OPTIND"
27 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"
32 while getopts "ab" var -a -b c; do
33 echo "var:'$var' OPTIND:$OPTIND"
35 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"
[all …]
Dgetopt_test_libc_bug.right2 1 rc:0 var:'a' OPTIND:2 OPTARG:''
4 2 rc:0 var:'?' OPTIND:3 OPTARG:''
5 3 rc:0 var:'c' OPTIND:4 OPTARG:''
7 4 rc:0 var:'?' OPTIND:5 OPTARG:''
8 5 rc:1 var:'?' OPTIND:5 OPTARG:''
11 1 rc:0 var:'a' OPTIND:2 OPTARG:''
13 2 rc:0 var:'?' OPTIND:3 OPTARG:''
14 3 rc:0 var:'c' OPTIND:4 OPTARG:''
16 4 rc:0 var:'?' OPTIND:5 OPTARG:''
17 5 rc:1 var:'?' OPTIND:5 OPTARG:''
[all …]
Dgetopt_optarg.right3 var:'?' OPTIND:2 OPTARG:''
4 var:'w' OPTIND:4 OPTARG:'e'
6 var:'?' OPTIND:5 OPTARG:''
7 var:'t' OPTIND:6 OPTARG:''
9 var:'?' OPTIND:7 OPTARG:''
10 exited: var:'?' OPTIND:7 OPTARG:''
12 var:'w' OPTIND:3 OPTARG:'1'
13 var:'w' OPTIND:4 OPTARG:'2'
14 var:'w' OPTIND:6 OPTARG:'-e'
15 var:'e' OPTIND:7 OPTARG:''
[all …]
Dgetopt_optarg.tests3 var=QWERTY
5 while getopts "w:et" var; do
6 echo "var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
9 echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
14 while getopts "w:et" var; do
15 echo "var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
18 echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
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'"
23 getopts ":ac" var -a -b -c; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
/busybox-1.35.0/shell/hush_test/hush-getopts/
Dgetopt_simple.right2 var:'a' OPTIND:2
3 var:'b' OPTIND:3
4 exited: rc:0 var:'?' OPTIND:3
6 var:'a' OPTIND:2
7 var:'b' OPTIND:3
8 exited: rc:0 var:'?' OPTIND:3
10 var:'a' OPTIND:2
11 var:'b' OPTIND:3
12 exited: rc:0 var:'?' OPTIND:3
14 var:'a' OPTIND:2
[all …]
Dgetopt_nested.right1 var:a
2 var:b
3 var:c
4 var:a
5 var:b
6 var:c
8 var:?
10 var:?
12 var:?
13 var:a
[all …]
Dgetopt_simple.tests16 var=QWERTY
17 while getopts "ab" var -a -b c; do
18 echo "var:'$var' OPTIND:$OPTIND"
21 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"
26 while getopts "ab" var -a -b c; do
27 echo "var:'$var' OPTIND:$OPTIND"
29 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"
34 while getopts "ab" var -a -b c; do
35 echo "var:'$var' OPTIND:$OPTIND"
37 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"
[all …]
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_optarg.right3 var:'?' OPTIND:2 OPTARG:''
4 var:'w' OPTIND:4 OPTARG:'e'
6 var:'?' OPTIND:5 OPTARG:''
7 var:'t' OPTIND:6 OPTARG:''
9 var:'?' OPTIND:7 OPTARG:''
10 exited: var:'?' OPTIND:7 OPTARG:''
12 var:'w' OPTIND:3 OPTARG:'1'
13 var:'w' OPTIND:4 OPTARG:'2'
14 var:'w' OPTIND:6 OPTARG:'-e'
15 var:'e' OPTIND:7 OPTARG:''
[all …]
Dgetopt_test_libc_bug.right2 1 rc:0 var:'a' OPTIND:2 OPTARG:''
4 2 rc:0 var:'?' OPTIND:3 OPTARG:''
5 3 rc:0 var:'c' OPTIND:4 OPTARG:''
7 4 rc:0 var:'?' OPTIND:5 OPTARG:''
8 5 rc:1 var:'?' OPTIND:5 OPTARG:''
11 1 rc:0 var:'a' OPTIND:2 OPTARG:''
13 2 rc:0 var:'?' OPTIND:3 OPTARG:''
14 3 rc:0 var:'c' OPTIND:4 OPTARG:''
16 4 rc:0 var:'?' OPTIND:5 OPTARG:''
17 5 rc:1 var:'?' OPTIND:5 OPTARG:''
[all …]
Dgetopt_optarg.tests5 var=QWERTY
7 while getopts "w:et" var; do
8 echo "var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
11 echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
16 while getopts "w:et" var; do
17 echo "var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
20 echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
/busybox-1.35.0/shell/hush_test/hush-redir/
Dredir1.tests2 var=bad
3 >shell_test_$$ var=ok
4 echo "Test 0: var:$var"
8 var=bad
9 var=ok >shell_test_$$
10 echo "Test 1: var:$var"
14 var=ok
15 true | var=bad >shell_test_$$
16 echo "Test 2: var:$var"
20 var=bad
[all …]
/busybox-1.35.0/shell/ash_test/ash-redir/
Dredir1.tests2 var=bad
3 >shell_test_$$ var=ok
4 echo "Test 0: var:$var"
8 var=bad
9 var=ok >shell_test_$$
10 echo "Test 1: var:$var"
14 var=ok
15 true | var=bad >shell_test_$$
16 echo "Test 2: var:$var"
20 var=bad
[all …]
/busybox-1.35.0/shell/hush_test/hush-z_slow/
Dleak_all1.tests28 unset var
29 echo >/dev/null ${var#}
30 echo >/dev/null ${var##}
31 echo >/dev/null ${var#*}
32 echo >/dev/null ${var##*}
33 echo >/dev/null ${var%}
34 echo >/dev/null ${var%%}
35 echo >/dev/null ${var%*}
36 echo >/dev/null ${var%%*}
37 var=
[all …]

1234