The following commit has been merged in the master branch:
commit 49202fbb142dda6652c71f404d94cfee6a1aca5d
Author: Benjamin Drung <[email protected]>
Date:   Thu Oct 25 22:06:47 2012 +0200

    Add test case from Raphael Geissert for previous commit.

diff --git a/test/bashisms/comments-in-quoted-strings1.sh 
b/test/bashisms/comments-in-quoted-strings1.sh
new file mode 100644
index 0000000..36d4bd8
--- /dev/null
+++ b/test/bashisms/comments-in-quoted-strings1.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+echo 's#/##g
+s# #/#'
+
+echo '
+' # foo() {} "
diff --git a/test/bashisms/comments-in-quoted-strings2.sh 
b/test/bashisms/comments-in-quoted-strings2.sh
new file mode 100644
index 0000000..6c9ef0e
--- /dev/null
+++ b/test/bashisms/comments-in-quoted-strings2.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "
+\" # " # foo() {} '
diff --git a/test/test_checkbashisms b/test/test_checkbashisms
index 9eedcef..ee640b1 100755
--- a/test/test_checkbashisms
+++ b/test/test_checkbashisms
@@ -57,6 +57,14 @@ test_basic_bash_override() {
     clean "-f bashisms/basic-bash-override.mk"
 }
 
+test_comments_in_quoted_strings1() {
+    clean "bashisms/comments-in-quoted-strings1.sh"
+}
+
+test_comments_in_quoted_strings2() {
+    clean "bashisms/comments-in-quoted-strings2.sh"
+}
+
 test_command() {
     found "bashisms/command.sh" "$(cat bashisms/command.sh.out)"
 }

-- 
Git repository for devscripts

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to