/busybox-1.35.0/shell/hush_test/hush-redir/ |
D | redir_backquote1.tests | 1 v=v 2 v=`echo First >&2` `` >/cant/be/created 3 echo One:$? v1:"[$v]" 5 v=v 6 v=`echo Second >&2` `true` >/cant/be/created 7 echo One:$? v2:"[$v]" 9 v=v 10 v=`echo Third >&2` `true` 2>/dev/null 11 echo Zero:$? v3:"[$v]" 13 v=v [all …]
|
/busybox-1.35.0/libbb/ |
D | percent_decode.c | 11 unsigned v; in hex_to_bin() local 13 v = c - '0'; in hex_to_bin() 14 if (v <= 9) in hex_to_bin() 15 return v; in hex_to_bin() 18 v = (unsigned)(c | 0x20) - 'a'; in hex_to_bin() 19 if (v <= 5) in hex_to_bin() 20 return v + 10; in hex_to_bin() 37 unsigned v; in percent_decode_in_place() local 47 v = hex_to_bin(src[0]); in percent_decode_in_place() 48 if (v > 15) { in percent_decode_in_place() [all …]
|
D | bb_strtonum.c | 38 static unsigned long long handle_errors(unsigned long long v, char **endp) in handle_errors() argument 50 return v; in handle_errors() 56 unsigned long long v; in bb_strtoull() local 68 v = strtoull(arg, endp, base); in bb_strtoull() 69 return handle_errors(v, endp); in bb_strtoull() 74 unsigned long long v; in bb_strtoll() local 88 v = strtoll(arg, endp, base); in bb_strtoll() 89 return handle_errors(v, endp); in bb_strtoll() 95 unsigned long v; in bb_strtoul() local 103 v = strtoul(arg, endp, base); in bb_strtoul() [all …]
|
D | human_readable.c | 88 unsigned v, u, idx = 0; in smart_ulltoa5() local 97 v = ul; // ullong divisions are expensive, avoid them in smart_ulltoa5() 100 u = v / 10; in smart_ulltoa5() 101 v = v % 10; in smart_ulltoa5() 112 buf[4] = "0123456789"[v]; in smart_ulltoa5() 122 v = u % 10; in smart_ulltoa5() 132 buf[3] = "0123456789"[v]; in smart_ulltoa5() 145 unsigned v, u, idx = 0; in smart_ulltoa4() local 154 v = ul; // ullong divisions are expensive, avoid them in smart_ulltoa4() 157 u = v / 10; in smart_ulltoa4() [all …]
|
/busybox-1.35.0/shell/ash_test/ash-vars/ |
D | var_wordsplit_ifs1.tests | 21 echo 'Testing: !IFS v=$*' 22 unset IFS; v=$*; echo "v='$v'" 23 echo 'Testing: !IFS v=$@' 24 unset IFS; v=$@; echo "v='$v'" 25 echo 'Testing: !IFS v="$*"' 26 unset IFS; v="$*"; echo "v='$v'" 27 echo 'Testing: !IFS v="$@"' 28 unset IFS; v="$@"; echo "v='$v'" 30 echo 'Testing: IFS="" v=$*' 31 IFS=""; v=$*; echo "v='$v'" [all …]
|
D | var_wordsplit_ifs1.right | 25 Testing: !IFS v=$* 26 v='abc d e' 27 Testing: !IFS v=$@ 28 v='abc d e' 29 Testing: !IFS v="$*" 30 v='abc d e' 31 Testing: !IFS v="$@" 32 v='abc d e' 33 Testing: IFS="" v=$* 34 v='abcd e' [all …]
|
D | var_bash5.tests | 1 # This testcase checks whether slashes in ${v/a/b} are parsed before 4 v='a/b/c' 7 echo "1 ${v/$s}" 8 echo "2 ${v/$s/d}" 9 echo "3 ${v/$s/$r}" 11 v='a\b\c' 14 echo "4 ${v/$s}" 15 echo "5 ${v/$s/d}" 16 echo "6 ${v/$s/$r}" 18 v='a\\b\\c' [all …]
|
D | var_bash4.tests | 12 # ${v/.../$s}, then all backslashes are preserved in both cases. 14 v='a*b\*c' 15 echo 'Source: ' "$v" 19 echo 'Unquoted: ' ${v/\*/_\\_\z_} 20 r=${v/\*/_\\_\z_} 22 echo 'Quoted: ' "${v/\*/_\\_\z_}" 23 r="${v/\*/_\\_\z_}" 27 echo 'Unquoted: ' ${v/\\*/_\\_\z_} 28 r=${v/\\*/_\\_\z_} 30 echo 'Quoted: ' "${v/\\*/_\\_\z_}" [all …]
|
D | var_bash6.tests | 1 # This testcase checks globbing correctness in ${v/a/b} 5 v='a bz'; echo 'a*z :' "${v/a*z/a*z}" 6 v='a bz'; echo 'z :' "${v/a*z/\z}" 7 v='a bz'; echo 'a1z a2z:' ${v/a*z/a*z} 8 v='a bz'; echo 'z :' ${v/a*z/\z}
|
D | var_wordsplit_ifs3.tests | 2 for v in ${a%y}; do echo Unquoted%:"<$v>"; done 3 for v in ${a#q}; do echo Unquoted#:"<$v>"; done 4 for v in "${a%y}"; do echo Quoted%:"<$v>"; done 5 for v in "${a#q}"; do echo Quoted#:"<$v>"; done
|
/busybox-1.35.0/shell/hush_test/hush-vars/ |
D | var_wordsplit_ifs1.tests | 21 echo 'Testing: !IFS v=$*' 22 unset IFS; v=$*; echo "v='$v'" 23 echo 'Testing: !IFS v=$@' 24 unset IFS; v=$@; echo "v='$v'" 25 echo 'Testing: !IFS v="$*"' 26 unset IFS; v="$*"; echo "v='$v'" 27 echo 'Testing: !IFS v="$@"' 28 unset IFS; v="$@"; echo "v='$v'" 30 echo 'Testing: IFS="" v=$*' 31 IFS=""; v=$*; echo "v='$v'" [all …]
|
D | var_wordsplit_ifs1.right | 25 Testing: !IFS v=$* 26 v='abc d e' 27 Testing: !IFS v=$@ 28 v='abc d e' 29 Testing: !IFS v="$*" 30 v='abc d e' 31 Testing: !IFS v="$@" 32 v='abc d e' 33 Testing: IFS="" v=$* 34 v='abcd e' [all …]
|
D | var_bash5.tests | 1 # This testcase checks whether slashes in ${v/a/b} are parsed before 4 v='a/b/c' 7 echo "1 ${v/$s}" 8 echo "2 ${v/$s/d}" 9 echo "3 ${v/$s/$r}" 11 v='a\b\c' 14 echo "4 ${v/$s}" 15 echo "5 ${v/$s/d}" 16 echo "6 ${v/$s/$r}" 18 v='a\\b\\c' [all …]
|
D | var_bash4.tests | 12 # ${v/.../$s}, then all backslashes are preserved in both cases. 14 v='a*b\*c' 15 echo 'Source: ' "$v" 19 echo 'Unquoted: ' ${v/\*/_\\_\z_} 20 r=${v/\*/_\\_\z_} 22 echo 'Quoted: ' "${v/\*/_\\_\z_}" 23 r="${v/\*/_\\_\z_}" 27 echo 'Unquoted: ' ${v/\\*/_\\_\z_} 28 r=${v/\\*/_\\_\z_} 30 echo 'Quoted: ' "${v/\\*/_\\_\z_}" [all …]
|
D | var_bash6.tests | 1 # This testcase checks globbing correctness in ${v/a/b} 5 v='a bz'; echo 'a*z :' "${v/a*z/a*z}" 6 v='a bz'; echo 'z :' "${v/a*z/\z}" 7 v='a bz'; echo 'a1z a2z:' ${v/a*z/a*z} 8 v='a bz'; echo 'z :' ${v/a*z/\z}
|
D | var_wordsplit_ifs3.tests | 2 for v in ${a%y}; do echo Unquoted%:"<$v>"; done 3 for v in ${a#q}; do echo Unquoted#:"<$v>"; done 4 for v in "${a%y}"; do echo Quoted%:"<$v>"; done 5 for v in "${a#q}"; do echo Quoted#:"<$v>"; done
|
/busybox-1.35.0/shell/hush_test/hush-quoting/ |
D | dollar_repl_bash1.tests | 2 v=xx 4 f ${v/'x'/"y z"} 5 f ${v/"x"/'y z'} 6 f "${v/'x'/"y z"}" 7 f "${v/"x"/'y z'}" 9 f ${v//'x'/"y z"} 10 f ${v//"x"/'y z'} 11 f "${v//'x'/"y z"}" 12 f "${v//"x"/'y z'}"
|
/busybox-1.35.0/shell/ash_test/ash-quoting/ |
D | dollar_repl_bash1.tests | 2 v=xx 4 f ${v/'x'/"y z"} 5 f ${v/"x"/'y z'} 6 f "${v/'x'/"y z"}" 7 f "${v/"x"/'y z'}" 9 f ${v//'x'/"y z"} 10 f ${v//"x"/'y z'} 11 f "${v//'x'/"y z"}" 12 f "${v//"x"/'y z'}"
|
/busybox-1.35.0/shell/hush_test/hush-test2/ |
D | strops3.tests | 5 v=' 7 [[ "$v" =~ . ]]; echo 2:YES:$? 8 [[ "$v" =~ "[$v]" ]]; echo 3:no:$? # hmm bash does return 1... why? 9 [[ "$v" =~ [^a] ]]; echo 4:YES:$? 11 [[ $v =~ . ]]; echo 2u:YES:$? 12 [[ $v =~ [$v] ]]; echo 3u:YES:$? 13 [[ $v =~ [^a] ]]; echo 4u:YES:$?
|
/busybox-1.35.0/coreutils/ |
D | expr.c | 134 VALUE *v; in int_value() local 136 v = xzalloc(sizeof(VALUE)); in int_value() 138 v->type = INTEGER; in int_value() 139 v->u.i = i; in int_value() 140 return v; in int_value() 147 VALUE *v; in str_value() local 149 v = xzalloc(sizeof(VALUE)); in str_value() 151 v->type = STRING; in str_value() 152 v->u.s = xstrdup(s); in str_value() 153 return v; in str_value() [all …]
|
/busybox-1.35.0/shell/hush_test/hush-parsing/ |
D | escape5.tests | 1 v="a\nb\nc\n" 2 echo "$v" 3 printf "$v" 4 v='a\nb\nc\n' 5 echo "$v" 6 printf "$v"
|
D | escape3.tests | 3 v='a \ b \\ c \\\ d \\\\ e' 4 echo v: $v 5 echo v: "$v" 7 for a in $v; do echo .$a.; done 9 for a in $v; do echo ".$a."; done
|
/busybox-1.35.0/shell/ash_test/ash-parsing/ |
D | escape5.tests | 1 v="a\nb\nc\n" 2 echo "$v" 3 printf "$v" 4 v='a\nb\nc\n' 5 echo "$v" 6 printf "$v"
|
/busybox-1.35.0/shell/hush_test/hush-signals/ |
D | savetrap.tests | 3 v=` trap ` 4 echo "$v" 5 v=$( trap ) 6 echo "$v" 7 v=`trap` 8 echo "$v"
|
/busybox-1.35.0/shell/ash_test/ash-signals/ |
D | savetrap.tests | 3 v=` trap ` 4 echo "$v" 5 v=$( trap ) 6 echo "$v" 7 v=`trap` 8 echo "$v"
|