mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
[jobs.cpp] add escaping for job comamnd
This commit is contained in:
@@ -72,7 +72,10 @@ static void builtin_jobs_print(const job_t *j, int mode, int header, io_streams_
|
|||||||
|
|
||||||
out.append(j->is_stopped() ? _(L"stopped") : _(L"running"));
|
out.append(j->is_stopped() ? _(L"stopped") : _(L"running"));
|
||||||
out.append(L"\t");
|
out.append(L"\t");
|
||||||
out.append(j->command_wcstr());
|
|
||||||
|
wcstring cmd = escape_string(j->command(), ESCAPE_NO_PRINTABLES);
|
||||||
|
out.append(cmd);
|
||||||
|
|
||||||
out.append(L"\n");
|
out.append(L"\n");
|
||||||
streams.out.append(out);
|
streams.out.append(out);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user