0
0
mirror of https://github.com/vim/vim.git synced 2025-10-16 07:24:23 -04:00

runtime(sh): Update syntax, fix single-quoted strings in parameter expansions

Ignore single-quoted backslash escape sequences in parameter expansions.

\' is not an escaped single quote in ${foo:-'word\'}.

closes: #17261

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-05-05 20:10:11 +02:00
committed by Christian Brabandt
parent 13bd43c1e5
commit fe22867ef5
3 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/dash
echo ${foo:-'string \'}