summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/visudo/test5.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sudoers/regress/visudo/test5.sh')
-rwxr-xr-xplugins/sudoers/regress/visudo/test5.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/sudoers/regress/visudo/test5.sh b/plugins/sudoers/regress/visudo/test5.sh
new file mode 100755
index 0000000..29364ea
--- /dev/null
+++ b/plugins/sudoers/regress/visudo/test5.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# Test comment on the last line with no newline
+#
+
+printf "# one comment\n#two comments" | ./visudo -csf -
+
+exit 0