mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-31 23:28:45 +00:00
parent
f854e3dc29
commit
962bfa9668
1 changed files with 4 additions and 0 deletions
|
@ -548,6 +548,10 @@ wcstring parse_util_escape_string_with_quote(const wcstring &cmd, wchar_t quote,
|
||||||
case L'\\':
|
case L'\\':
|
||||||
result.append({L'\\', L'\\'});
|
result.append({L'\\', L'\\'});
|
||||||
break;
|
break;
|
||||||
|
case L'$':
|
||||||
|
if (quote == L'"') result.push_back(L'\\');
|
||||||
|
result.push_back(L'$');
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (c == quote) result.push_back(L'\\');
|
if (c == quote) result.push_back(L'\\');
|
||||||
result.push_back(c);
|
result.push_back(c);
|
||||||
|
|
Loading…
Reference in a new issue