mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
committed by
Mahmoud Al-Qudsi
parent
f854e3dc29
commit
962bfa9668
@@ -548,6 +548,10 @@ wcstring parse_util_escape_string_with_quote(const wcstring &cmd, wchar_t quote,
|
||||
case L'\\':
|
||||
result.append({L'\\', L'\\'});
|
||||
break;
|
||||
case L'$':
|
||||
if (quote == L'"') result.push_back(L'\\');
|
||||
result.push_back(L'$');
|
||||
break;
|
||||
default:
|
||||
if (c == quote) result.push_back(L'\\');
|
||||
result.push_back(c);
|
||||
|
||||
Reference in New Issue
Block a user