From 3ca518255e7be2af5fe4a6b2a02e33dd232729d9 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 2 May 2015 18:22:20 -0700 Subject: Treat comments ending in backslashes as not continuing onto the next line Fixes #1255 --- tests/generic.expect | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/generic.expect') diff --git a/tests/generic.expect b/tests/generic.expect index 7a5b6407..33d260a7 100644 --- a/tests/generic.expect +++ b/tests/generic.expect @@ -33,3 +33,9 @@ send_line $hist_command expect_prompt -re {echo .history.*} {} unmatched { puts stderr "Couldn't find expected output $hist_command" } + +# Backslashes at end of comments (#1255) +# This backslash should NOT cause the line to continue +send_line "echo -n #comment\\" +expect_prompt + -- cgit v1.2.3