busybox/shell/ash_test/ash-quoting
Denys Vlasenko 45dd87aac0 ash: expand: Ensure result is escaped in cvtnum
Upstream commit:

    Date: Fri, 1 Jun 2018 18:25:29 +0800
    expand: Ensure result is escaped in cvtnum

    The minus sign generated from arithmetic expansion is currently
    unquoted which causes anomalies when the result is used in where
    the quoting matters.

    This patch fixes it by explicitly calling memtodest on the result
    in cvtnum.

    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2020-02-21 16:30:44 +01:00
..
bkslash_case1.right ash : fix double-quoted "\z" handling 2018-02-13 14:44:11 +01:00
bkslash_case1.tests ash : fix double-quoted "\z" handling 2018-02-13 14:44:11 +01:00
bkslash_case2.right hush: fix a backslash-removal bug in case 2018-04-02 17:25:18 +02:00
bkslash_case2.tests hush: fix a backslash-removal bug in case 2018-04-02 17:25:18 +02:00
bkslash_in_varexp1.right shell: tweak bkslash_in_varexp.tests, add bkslash_in_varexp1.tests 2018-03-02 18:12:12 +01:00
bkslash_in_varexp1.tests shell: tweak bkslash_in_varexp.tests, add bkslash_in_varexp1.tests 2018-03-02 18:12:12 +01:00
bkslash_in_varexp.right shell: two new tests, both fail for ash and hush 2018-03-02 17:13:22 +01:00
bkslash_in_varexp.tests shell: tweak bkslash_in_varexp.tests, add bkslash_in_varexp1.tests 2018-03-02 18:12:12 +01:00
case_glob1.right hush: fix "$v" expansion in case patterns when v='[a]' 2018-04-11 13:47:59 +02:00
case_glob1.tests hush: fix "$v" expansion in case patterns when v='[a]' 2018-04-11 13:47:59 +02:00
dollar_altvalue1.right hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
dollar_altvalue1.tests hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
dollar_altvalue2.right hush: fix handling of '' in ${var:+ARG} 2018-07-20 17:36:06 +02:00
dollar_altvalue2.tests hush: fix handling of '' in ${var:+ARG} 2018-07-20 17:36:06 +02:00
dollar_altvalue9.right hush: fix handling of '' in ${var:+ARG} 2018-07-20 17:36:06 +02:00
dollar_altvalue9.tests hush: fix word splitting in ${v:+ARG} - dollar_altvalue1 test 2018-07-20 16:29:43 +02:00
dollar_repl_bash1.right hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
dollar_repl_bash1.tests hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
dollar_repl_slash_bash1.right ash: fix obscure case of replacing + globbing + backslashes 2010-06-26 22:55:44 +02:00
dollar_repl_slash_bash1.tests hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
dollar_repl_slash_bash2.right ash,hush: new test dollar_repl_slash_bash2.tests 2018-03-30 23:25:24 +02:00
dollar_repl_slash_bash2.tests ash,hush: new test dollar_repl_slash_bash2.tests 2018-03-30 23:25:24 +02:00
dollar_squote_bash1.right ash: bash-compatible $'...' shouldn't expand in double quotes 2016-04-15 22:16:46 +02:00
dollar_squote_bash1.tests ash: bash-compatible $'...' shouldn't expand in double quotes 2016-04-15 22:16:46 +02:00
dollar_squote_bash2.right ash: fix handling of NULs in $'abc\000def\x00asd'. Closes 9286 2016-09-25 20:54:25 +02:00
dollar_squote_bash2.tests ash: fix handling of NULs in $'abc\000def\x00asd'. Closes 9286 2016-09-25 20:54:25 +02:00
mode_x.right ash: add LINENO support 2018-01-27 22:02:05 +01:00
mode_x.tests ash: improve set -x to quote strings as necessary 2017-07-21 13:20:14 +02:00
negative_arith.right ash: expand: Ensure result is escaped in cvtnum 2020-02-21 16:30:44 +01:00
negative_arith.tests ash: expand: Ensure result is escaped in cvtnum 2020-02-21 16:30:44 +01:00
quote_in_varexp1.right ash: parser: Fix parameter expansion inside inner double quotes 2018-04-02 21:00:59 +02:00
quote_in_varexp1.tests ash: parser: Fix parameter expansion inside inner double quotes 2018-04-02 21:00:59 +02:00
quoted_punct.right ash: fix escaping of a few characters (broken by last commits) 2017-07-05 22:19:28 +02:00
quoted_punct.tests ash: fix escaping of a few characters (broken by last commits) 2017-07-05 22:19:28 +02:00
squote_in_varexp1.right hush: fix a='a\\'; echo "${a%\\\\}" 2018-03-02 20:48:36 +01:00
squote_in_varexp1.tests hush: fix a='a\\'; echo "${a%\\\\}" 2018-03-02 20:48:36 +01:00
squote_in_varexp2.right hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
squote_in_varexp2.tests hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
squote_in_varexp3.right ash: parser: Add syntax stack for recursive parsing 2018-04-02 13:15:37 +02:00
squote_in_varexp3.tests ash: parser: Add syntax stack for recursive parsing 2018-04-02 13:15:37 +02:00
squote_in_varexp.right hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
squote_in_varexp.tests hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
unicode_8x_chars.right ash: fix matching of unicode greek letter rho (cf 81) and similar cases 2017-07-05 19:10:21 +02:00
unicode_8x_chars.tests ash: fix matching of unicode greek letter rho (cf 81) and similar cases 2017-07-05 19:10:21 +02:00