aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-parsing (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hush: fix bkslash+newline handling and number validation in ${NN} and ${#NN}Denys Vlasenko2021-06-192-0/+18
| | | | | | | | | | | | | Entering "${1a}" into interactive shell was making it exit. function old new delta parse_dollar 824 958 +134 i_getch_and_eat_bkslash_nl - 44 +44 parse_expr 917 938 +21 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 199/0) Total: 199 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix recent breakage from parse_stream() changesDenys Vlasenko2018-04-112-0/+5
| | | | | | | function old new delta parse_stream 3808 3821 +13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: do not drop backslash from eval 'echo ok\'Denys Vlasenko2018-04-111-1/+1
| | | | | | | | | | | | newer bash does not drop it, most other shells too function old new delta unbackslash 39 57 +18 parse_stream 2753 2751 -2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 18/-2) Total: 16 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix handling of \<eof> in double-quoted stringsDenys Vlasenko2018-04-102-0/+6
| | | | | | | function old new delta encode_string 268 250 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix eval 'echo ok\'Denys Vlasenko2018-04-102-0/+2
| | | | | | | function old new delta parse_stream 2762 2753 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: expand: Fix bugs with words connected to the right of $@Denys Vlasenko2018-04-022-0/+3
| | | | | | | | | | | | | | | Upstream email: This is actually composed of two bugs. First of all our tracking of quotemark is wrong so anything after "$@" becomes quoted. Once we fix that then the problem is that the first space character after "$@" is not recognised as an IFS. This patch fixes both. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: handle a few more bkslash-newline casesDenys Vlasenko2018-04-014-0/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix comment parsing in `cmd`, closes 10421Denys Vlasenko2017-10-222-0/+17
| | | | | | | function old new delta parse_stream 2692 2690 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: do not accept "if() { echo; }" function defDenys Vlasenko2017-08-022-0/+12
| | | | | | | | | | | | | | function old new delta parse_stream 2634 2692 +58 msg_and_die_if_script - 21 +21 syntax_error_unexpected_ch 41 46 +5 syntax_error_at 14 18 +4 die_if_script 31 28 -3 setup_redirects 319 308 -11 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/2 up/down: 88/-14) Total: 74 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: and_or_and_backgrounding.tests is no longer "UNFIXED BUG"Denys Vlasenko2017-07-151-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix and_or_and_backgrounding.tests failureDenys Vlasenko2017-07-152-0/+35
| | | | | | | function old new delta done_pipe 133 218 +85 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sh testsuite: create hush-redir/* and move files aroundDenys Vlasenko2016-10-022-9/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix remaining known two bugs with IFS expansion. Closes 4027.Denys Vlasenko2011-08-012-3/+6
| | | | | | | | | | | | | function old new delta expand_vars_to_list 1054 1140 +86 parse_stream 2425 2479 +54 expand_on_ifs 258 310 +52 builtin_umask 133 132 -1 done_word 820 779 -41 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 192/-42) Total: 150 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix improper handling of newline and hash chars in few corner casesDenys Vlasenko2010-11-224-0/+23
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* hush: fix hush-bugs/parse_err.testsDenys Vlasenko2010-05-172-0/+5
| | | | | | | | | function old new delta parse_stream 2325 2339 +14 builtin_umask 121 123 +2 builtin_type 116 114 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: improve HUSH_BRACE_EXP code (still disabled). ~0 bytesDenys Vlasenko2009-11-172-0/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix handling of words with braces. +65 bytesDenys Vlasenko2009-11-162-0/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: do not use ps -o in leak_argv1; do not hardcode path in negateDenys Vlasenko2009-08-122-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix bug 353 (wrong handling of \x in assignments)Denys Vlasenko2009-05-282-0/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix \<newline> handlingDenys Vlasenko2009-05-033-0/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix handling of } which is not a closing one in { cmd; }Denis Vlasenko2009-04-192-0/+2
| | | | | | | function old new delta parse_stream 2176 2302 +126 builtin_unset 381 387 +6
* hush: fix "if { echo foo; } then { echo bar; } fi" parsingDenis Vlasenko2009-04-162-0/+21
| | | | | | | function old new delta done_word 728 793 +65 parse_stream 2084 2098 +14
* skip some tests when fancy echo support is turned offMike Frysinger2009-04-092-0/+4
|
* we arent testing `echo -n` here so use printf insteadMike Frysinger2009-04-091-6/+6
|
* move hush-parsing/and-or.tests to hush-misc/*Denis Vlasenko2009-04-062-52/+0
| | | | | (which probably needs to be renamed to hush-execution...)
* add some brute force logic testsMike Frysinger2009-04-062-0/+52
|
* hush: tweak testsuiteDenis Vlasenko2009-03-202-1/+5
|
* hush: fix bug 207 and "hush -c" parameter passing.Denis Vlasenko2009-03-202-0/+4
| | | | | | | Now hush -c 'printf "%s\n" "$@"' (prints "\n") and hush -c 'printf "%s\n" "$@"' qwe asd (prints "asd\n") both work correctly
* hush: fix a case where "$@" must expand to no word at allDenis Vlasenko2008-07-052-0/+16
|
* hush: add testsuite for "no globbing in redirection" rule.Denis Vlasenko2008-06-184-0/+40
| | | | | simplify redirection habdling
* hush: expand quote3.tests and move from hush-bugs to hush-parsingDenis Vlasenko2008-06-182-0/+33
|
* hush: support "! cmd | cmd" negationDenis Vlasenko2008-06-142-0/+51
| | | | | | | | | | | | | function old new delta done_word 749 791 +42 run_list 1821 1859 +38 checkjobs 334 351 +17 done_pipe 61 74 +13 static.reserved_list 132 144 +12 initialize_context 53 45 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/1 up/down: 122/-8) Total: 114 bytes
* hush: fix escaping of \[*?; add testsuites for these and for globbingDenis Vlasenko2008-06-104-0/+16
|
* hush: make syntax error messages a bit more usefulDenis Vlasenko2007-05-232-0/+3
|
* hush: fix a bit different instance of "No EOL" bug,Denis Vlasenko2007-05-232-0/+8
| | | | add testsuite for that. Expand another testsuite.
* shells: update README and testsuite. environment memory leakDenis Vlasenko2007-05-212-0/+2
| | | | needs to be fixed - and documented!
* hush: fix expansion of quoted $VAR, $* and $@Denis Vlasenko2007-05-164-0/+19
|
* hush: fix incorrect processing of echo "'$var'".Denis Vlasenko2007-05-162-0/+3
| | | | | | hush: rename map[] and MAP_xxx, making them easier to understand. hush: move testcase (which now passes) from hush-bugs to hush-parsing
* hush: move testsuite files from hush-bugs to hush-parsingDenis Vlasenko2007-05-144-0/+8
| | | | (as these bugs are now fixed)
* hush: reinstate hush_test, add testcases for process substDenis Vlasenko2007-05-114-0/+7
|
* hush: fix bug in interactive shell introduced yesterdayDenis Vlasenko2007-05-112-3/+0
| | | | | hush: fix `process subst` (2 bugs) NB: will delete and re-add hush_test in order to change file modes
* hush: fix "unterminated last line loops forever" bugDenis Vlasenko2007-05-102-0/+3
hush: add testsuite infrastructure