about summary refs log tree commit diff
path: root/t/regression.t
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-11-20 22:24:04 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-11-20 22:24:04 +0100
commite482f75e7d11ca64a67efe5c8bb757ff983ac4af (patch)
treeda04ddcc2044341eba22bd4581fb7af4ba9da1dd /t/regression.t
parentc602bfd08a47f4840bf2e8d96663f76e2fb22f1c (diff)
downloadatxec-e482f75e7d11ca64a67efe5c8bb757ff983ac4af.tar.gz
atxec-e482f75e7d11ca64a67efe5c8bb757ff983ac4af.tar.xz
atxec-e482f75e7d11ca64a67efe5c8bb757ff983ac4af.zip
fix comment parsing when there is no final newline
Found by @duncaen.
Diffstat (limited to 't/regression.t')
-rwxr-xr-xt/regression.t12
1 files changed, 12 insertions, 0 deletions
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