busybox/shell/ash_test/ash-quoting/dollar_repl_bash2.tests
Denys Vlasenko c5a1be25ba ash: fix handling of single-quoted strings in pattern substitution
function                                             old     new   delta
subevalvar                                          1576    1588     +12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2024-02-26 16:27:53 +01:00

8 lines
198 B
Text
Executable file

v="x/x"
# The second / is quoted, should not be treated as separator
echo a${v/'/'}b
# The second / is escaped, should not be treated as separator
echo a${v/\/}b
echo "a${v/'/'}b"
echo "a${v/\/}b"