Searched refs:ifs (Results 1 – 6 of 6) sorted by relevance
/busybox-1.35.0/shell/ |
D | shell_common.c | 52 const char *ifs; in shell_builtin_read() local 137 ifs = params->ifs; in shell_builtin_read() 138 if (ifs == NULL) in shell_builtin_read() 139 ifs = defifs; in shell_builtin_read() 235 const char *is_ifs = strchr(ifs, c); in shell_builtin_read() 263 && strchr(ifs, buffer[bufpos]) != NULL in shell_builtin_read() 281 && strchr(ifs, buffer[bufpos]) != NULL in shell_builtin_read() 287 && strchr(ifs, buffer[bufpos]) != NULL in shell_builtin_read() 292 if (strcspn(buffer, ifs) >= ++bufpos) { in shell_builtin_read()
|
D | shell_common.h | 35 const char *ifs; member
|
D | hush.c | 963 const char *ifs; member 6086 word_len = strcspn(str, G.ifs); in expand_on_ifs() 6113 if (G.ifs_whitespace != G.ifs /* usually false ($IFS is usually all whitespace), */ in expand_on_ifs() 6114 && strchr(G.ifs, *str) /* the second check would fail */ in expand_on_ifs() 6321 && '\0' == str[strcspn(str, G.ifs)] in encode_then_append_var_plusminus() 6347 if (!dquoted && strchr(G.ifs, ch)) { in encode_then_append_var_plusminus() 7046 if (G.ifs[0]) in expand_vars_to_list() 7047 o_addchr(output, G.ifs[0]); in expand_vars_to_list() 9218 if (G.ifs_whitespace != G.ifs) in run_pipe() 9220 G.ifs = get_local_var_value("IFS"); in run_pipe() [all …]
|
D | ash.c | 6135 const char *ifs, *realifs; in ifsbreakup() local 6151 ifs = nulonly ? nullstr : realifs; in ifsbreakup() 6157 if (!strchr(ifs, *p)) { in ifsbreakup() 6183 if (strchr(ifs, *p) == NULL) { in ifsbreakup() 14224 params.ifs = bltinlookup("IFS"); /* can be NULL */ in readcmd()
|
/busybox-1.35.0/shell/ash_test/ash-z_slow/ |
D | many_ifs.tests | 1 # Usage: $SHELL ifs.sh 26 for ifs in ': ' ' :' 27 do IFS=$ifs 66 …?0*) echo "IFS=\"$ifs\"; x=\"$i\"; set x \$x; shift; echo \"[\$#]\" # expected \"$s\" got \"$g\"" … 67 …?1*) echo "IFS=\"$ifs\"; x=\"$i\"; set x \$x; shift; echo \"[\$#](\$1)\" # expected \"$s\" got \"$… 68 …?2*) echo "IFS=\"$ifs\"; x=\"$i\"; set x \$x; shift; echo \"[\$#](\$1)(\$2)\" # expected \"$s\" go… 69 …?3*) echo "IFS=\"$ifs\"; x=\"$i\"; set x \$x; shift; echo \"[\$#](\$1)(\$2)(\$3)\" # expected \"$s… 84 1) echo "$i" | IFS=$ifs read x y; g="($x)($y)" ;; 85 *) g=`export ifs; echo "$i" | ( IFS=$ifs; read x y; echo "($x)($y)" )` ;; 114 …*) echo "echo \"$i\" | ( IFS=\"$ifs\" read x y; echo \"(\$x)(\$y)\" ) # expected \"$r\" got \"$g\"…
|
/busybox-1.35.0/shell/hush_test/hush-z_slow/ |
D | many_ifs.tests | 1 # Usage: $SHELL ifs.sh 26 for ifs in ': ' ' :' 27 do IFS=$ifs 66 …?0*) echo "IFS=\"$ifs\"; x=\"$i\"; set x \$x; shift; echo \"[\$#]\" # expected \"$s\" got \"$g\"" … 67 …?1*) echo "IFS=\"$ifs\"; x=\"$i\"; set x \$x; shift; echo \"[\$#](\$1)\" # expected \"$s\" got \"$… 68 …?2*) echo "IFS=\"$ifs\"; x=\"$i\"; set x \$x; shift; echo \"[\$#](\$1)(\$2)\" # expected \"$s\" go… 69 …?3*) echo "IFS=\"$ifs\"; x=\"$i\"; set x \$x; shift; echo \"[\$#](\$1)(\$2)(\$3)\" # expected \"$s… 84 1) echo "$i" | IFS=$ifs read x y; g="($x)($y)" ;; 85 *) g=`export ifs; echo "$i" | ( IFS=$ifs; read x y; echo "($x)($y)" )` ;; 114 …*) echo "echo \"$i\" | ( IFS=\"$ifs\" read x y; echo \"(\$x)(\$y)\" ) # expected \"$r\" got \"$g\"…
|