mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 04:13:08 +00:00
Escape the error string in process expansion errors
This prevents `echo %*` from printing a private-use character in the error string. Fixes #1720.
This commit is contained in:
parent
35595dbffd
commit
6925cd5d88
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ static bool expand_pid(const wcstring &instr_with_sep, expand_flags_t flags, std
|
|||
if (!(flags & ACCEPT_INCOMPLETE))
|
||||
{
|
||||
/* We failed to find anything */
|
||||
append_syntax_error(errors, 1, FAILED_EXPANSION_PROCESS_ERR_MSG, in+1);
|
||||
append_syntax_error(errors, 1, FAILED_EXPANSION_PROCESS_ERR_MSG, escape(in+1, ESCAPE_NO_QUOTED).c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue