diff --git a/job.c b/job.c index f3a9fdb..2df0eba 100644 --- a/job.c +++ b/job.c @@ -3144,13 +3144,14 @@ construct_command_argv_internal (char *line, char **restp, const char *shell, #endif if (PRESERVE_BSNL) { - *(ap++) = '\\'; + *(ap++) = '\''; /* Only non-batch execution needs another backslash, because it will be passed through a recursive invocation of this function. */ if (!batch_mode_shell) *(ap++) = '\\'; *(ap++) = '\n'; + *(ap++) = '\''; } ++p; continue;