Searched refs:var (Results 1 – 25 of 90) sorted by relevance
1234
1 unset var3 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 …]
1 var=abcdef3 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 …]
1 var=abc123dcba1233 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 …]
39 $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 minute65 $var = lcfirst($var);68 $var =~ s/([A-Z])/_$1/g;71 $var = lc($var);[all …]
2 var:'a' OPTIND:23 var:'b' OPTIND:34 exited: rc:0 var:'?' OPTIND:36 var:'a' OPTIND:27 var:'b' OPTIND:38 exited: rc:0 var:'?' OPTIND:310 var:'a' OPTIND:211 var:'b' OPTIND:312 exited: rc:0 var:'?' OPTIND:314 var:'a' OPTIND:2[all …]
1 var:a2 var:b3 var:c4 var:a5 var:b6 var:c8 var:?10 var:?12 var:?13 var:a[all …]
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 …]
14 var=QWERTY15 while getopts "ab" var -a -b c; do16 echo "var:'$var' OPTIND:$OPTIND"19 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"24 while getopts "ab" var -a -b c; do25 echo "var:'$var' OPTIND:$OPTIND"27 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"32 while getopts "ab" var -a -b c; do33 echo "var:'$var' OPTIND:$OPTIND"35 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"[all …]
2 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 …]
3 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 …]
3 var=QWERTY5 while getopts "w:et" var; do6 echo "var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"9 echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"14 while getopts "w:et" var; do15 echo "var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"18 echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
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'"23 getopts ":ac" var -a -b -c; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
16 var=QWERTY17 while getopts "ab" var -a -b c; do18 echo "var:'$var' OPTIND:$OPTIND"21 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"26 while getopts "ab" var -a -b c; do27 echo "var:'$var' OPTIND:$OPTIND"29 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"34 while getopts "ab" var -a -b c; do35 echo "var:'$var' OPTIND:$OPTIND"37 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND"[all …]
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 …]
5 var=QWERTY7 while getopts "w:et" var; do8 echo "var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"11 echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"16 while getopts "w:et" var; do17 echo "var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"20 echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
2 var=bad3 >shell_test_$$ var=ok4 echo "Test 0: var:$var"8 var=bad9 var=ok >shell_test_$$10 echo "Test 1: var:$var"14 var=ok15 true | var=bad >shell_test_$$16 echo "Test 2: var:$var"20 var=bad[all …]
28 unset var29 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 …]