aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 5df8d4744..98ba96e0c 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -4913,11 +4913,12 @@ static int encode_string(o_string *as_string,
4913 ch, ch, !!(dest->o_expflags & EXP_FLAG_ESC_GLOB_CHARS)); 4913 ch, ch, !!(dest->o_expflags & EXP_FLAG_ESC_GLOB_CHARS));
4914 if (process_bkslash && ch == '\\') { 4914 if (process_bkslash && ch == '\\') {
4915 if (next == EOF) { 4915 if (next == EOF) {
4916// TODO: what if in interactive shell a file with 4916 /* Testcase: in interactive shell a file with
4917// echo "unterminated string\<eof> 4917 * echo "unterminated string\<eof>
4918// is sourced? 4918 * is sourced.
4919 syntax_error("\\<eof>"); 4919 */
4920 xfunc_die(); 4920 syntax_error_unterm_ch('"');
4921 return 0; /* error */
4921 } 4922 }
4922 /* bash: 4923 /* bash:
4923 * "The backslash retains its special meaning [in "..."] 4924 * "The backslash retains its special meaning [in "..."]