From e482f75e7d11ca64a67efe5c8bb757ff983ac4af Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 20 Nov 2019 22:24:04 +0100 Subject: fix comment parsing when there is no final newline Found by @duncaen. --- t/regression.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 t/regression.t (limited to 't/regression.t') diff --git a/t/regression.t b/t/regression.t new file mode 100755 index 0000000..6ac2435 --- /dev/null +++ b/t/regression.t @@ -0,0 +1,12 @@ +#!/bin/sh +export "PATH=.:$PATH" + +printf '1..1\n' +printf '# regression tests\n' + +tap3 'comments without newline' <<'EOF' +printf '# foo' >two +atxec echo 1 @two 3 +>>> +1 3 +EOF -- cgit 1.4.1