Home
last modified time | relevance | path

Searched refs:word (Results 1 – 25 of 34) sorted by relevance

12

/busybox-1.35.0/shell/ash_test/ash-vars/
Dparam_expand_default.tests10 echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
13 echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
16 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
19 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
22 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
Dparam_expand_alt.tests7 # ${V+word} "if V unset, then substitute nothing, else substitute word"
8 # ${V:+word} "if V unset or '', then substitute nothing, else substitute word"
16 # Forms with non-empty word work as expected in both ash and bash.
21 echo _$1 _${1+} _${1:+} _${1+word} _${1:+word}
24 echo _$1 _${1+} _${1:+} _${1+word} _${1:+word}
27 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
30 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
33 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
Dparam_expand_assign.tests13 "$THIS_SH" -c 'set --; echo _${1=word}' SHELL
14 "$THIS_SH" -c 'set --; echo _${1:=word}' SHELL
19 "$THIS_SH" -c 'set aa; echo _${1=word}' SHELL
20 "$THIS_SH" -c 'set aa; echo _${1:=word}' SHELL
26 unset f; echo _${f=word}
27 unset f; echo _${f:=word}
32 f=; echo _${f=word}
33 f=; echo _${f:=word}
38 f=fff; echo _${f=word}
39 f=fff; echo _${f:=word}
Dparam_expand_indicate_error.tests31 "$THIS_SH" -c 'set -- aaaa; echo _${1?word}' SHELL
32 "$THIS_SH" -c 'set -- aaaa; echo _${1:?word}' SHELL
49 "$THIS_SH" -c 'f=; echo _${f?word}' SHELL
58 "$THIS_SH" -c 'f=fff; echo _${f?word}' SHELL
59 "$THIS_SH" -c 'f=fff; echo _${f:?word}' SHELL
/busybox-1.35.0/shell/hush_test/hush-vars/
Dparam_expand_default.tests10 echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
13 echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
16 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
19 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
22 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
Dparam_expand_alt.tests7 # ${V+word} "if V unset, then substitute nothing, else substitute word"
8 # ${V:+word} "if V unset or '', then substitute nothing, else substitute word"
16 # Forms with non-empty word work as expected in both ash and bash.
21 echo _$1 _${1+} _${1:+} _${1+word} _${1:+word}
24 echo _$1 _${1+} _${1:+} _${1+word} _${1:+word}
27 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
30 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
33 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
Dparam_expand_assign.tests13 "$THIS_SH" -c 'set --; echo _${1=word}' SHELL
14 "$THIS_SH" -c 'set --; echo _${1:=word}' SHELL
19 "$THIS_SH" -c 'set aa; echo _${1=word}' SHELL
20 "$THIS_SH" -c 'set aa; echo _${1:=word}' SHELL
26 unset f; echo _${f=word}
27 unset f; echo _${f:=word}
32 f=; echo _${f=word}
33 f=; echo _${f:=word}
38 f=fff; echo _${f=word}
39 f=fff; echo _${f:=word}
Dparam_expand_indicate_error.tests30 "$THIS_SH" -c 'set -- aaaa; echo _${1?word}'
31 "$THIS_SH" -c 'set -- aaaa; echo _${1:?word}'
48 "$THIS_SH" -c 'f=; echo _${f?word}'
57 "$THIS_SH" -c 'f=fff; echo _${f?word}'
58 "$THIS_SH" -c 'f=fff; echo _${f:?word}'
/busybox-1.35.0/modutils/
Ddepmod_process.sh13 while read -r word rest; do
15 echo -n "$word "
18 echo "$word $rest";
Dmodutils-24.c1174 Elf32_Addr word; in arch_apply_relocation()
1182 word = *loc; in arch_apply_relocation()
1183 *loc = ((((word >> 22) << 16) | (v & 0xffff)) << 6) | in arch_apply_relocation()
1184 (word & 0x3f); in arch_apply_relocation()
1190 Elf32_Addr word; in arch_apply_relocation()
1196 word = *loc; in arch_apply_relocation()
1197 *loc = ((((word >> 22) << 16) | (v & 0xffff)) << 6) | in arch_apply_relocation()
1198 (word & 0x3f); in arch_apply_relocation()
1204 Elf32_Addr word; in arch_apply_relocation()
1213 word = *loc; in arch_apply_relocation()
[all …]
/busybox-1.35.0/shell/hush_test/hush-parsing/
Dgroup1.right1 word} }
Dgroup1.tests1 { echo word} }; }
Dstarquoted2.tests9 # treating "" as "this word cannot be expanded to nothing,
/busybox-1.35.0/shell/ash_test/ash-parsing/
Dgroup1.right1 word} }
Dgroup1.tests1 { echo word} }; }
/busybox-1.35.0/testsuite/echo/
Decho-prints-newline1 test `busybox echo word | wc -c` -eq 5
Decho-does-not-print-newline3 test `busybox echo -n word | wc -c` -eq 4
/busybox-1.35.0/scripts/kconfig/lxdialog/
Dutil.c204 char tempstr[MAX_LEN + 1], *word, *sp, *sp2; in print_autowrap() local
225 word = tempstr; in print_autowrap()
226 while (word && *word) { in print_autowrap()
227 sp = strchr(word, ' '); in print_autowrap()
235 wlen = strlen(word); in print_autowrap()
245 waddstr(win, word); in print_autowrap()
254 word = sp; in print_autowrap()
/busybox-1.35.0/shell/hush_test/hush-misc/
Dfor_with_bslashes.tests1 # last word contains ^C character.
/busybox-1.35.0/shell/ash_test/ash-misc/
Dfor_with_bslashes.tests1 # last word contains ^C character.
/busybox-1.35.0/miscutils/
Dsetserial.c664 const char *word; in serial_set() local
668 word = *arg; in serial_set()
669 invert = (word[0] == '^'); in serial_set()
670 word += invert; in serial_set()
672 cmd = find_cmd(word); in serial_set()
676 bb_error_msg_and_die(bb_msg_requires_arg, word); in serial_set()
679 bb_error_msg_and_die("can't invert %s", word); in serial_set()
/busybox-1.35.0/shell/
Dbrace.txt44 when they appear as part of a word, and preserves them in the output.
46 For example, a word entered to sh as file{1,2} appears identically in
47 the output. The same word is output as file1 file2 after expansion by
Dhush_doc.txt82 pipe termination after first word, which makes hush see
85 "case word in a) cmd1;; b) cmd2;; esac" as if it was
86 "case word; match a; cmd; match b; cmd2; esac"
89 "case word in a) cmd1;; b) cmd2; esac" -
92 pipe 0 res_word=CASE followup=SEQ prog[0] 'word'
Dhush.c736 o_string word; member
3958 static const struct reserved_combo* match_reserved_word(o_string *word) in match_reserved_word() argument
3990 if (strcmp(word->data, r->literal) == 0) in match_reserved_word()
4006 if (ctx->word.has_quoted_part) in reserved_word()
4008 r = match_reserved_word(&ctx->word); in reserved_word()
4035 syntax_error_at(ctx->word.data); in reserved_word()
4099 debug_printf_parse("done_word entered: '%s' %p\n", ctx->word.data, command); in done_word()
4100 if (ctx->word.length == 0 && !ctx->word.has_quoted_part) { in done_word()
4130 ctx->pending_redirect->rd_filename = xstrdup(ctx->word.data); in done_word()
4139 if (ctx->word.has_quoted_part) { in done_word()
[all …]
DREADME57 export name[=word]...
59 readonly name[=word]...

12