[SCM] Git repository for devscripts branch, master, updated. v2.12.4-43-g227b8b8

Benjamin Drung bdrung at debian.org
Thu Oct 25 20:17:09 UTC 2012


The following commit has been merged in the master branch:
commit 227b8b8b697b5382eff965fe4a6cce06d886c65d
Author: Benjamin Drung <bdrung at debian.org>
Date:   Thu Oct 25 22:14:48 2012 +0200

    Add test case from Raphael Geissert for previous commit.

diff --git a/test/bashisms/heredoc-with-others.sh b/test/bashisms/heredoc-with-others.sh
new file mode 100644
index 0000000..9f0c04f
--- /dev/null
+++ b/test/bashisms/heredoc-with-others.sh
@@ -0,0 +1,77 @@
+#!/bin/sh
+
+cat << =EOF1
+function CLEAN() {}
+=EOF1
+
+cat << :EOF2
+function CLEAN() {}
+:EOF2
+
+cat << ,EOF3
+function CLEAN() {}
+,EOF3
+
+cat << ?EOF4
+function CLEAN() {}
+?EOF4
+
+cat << E$OF5
+function CLEAN() {}
+E$OF5
+
+cat << $EOF6
+function CLEAN() {}
+$EOF6
+
+cat << EOF_7
+function CLEAN() {}
+EOF_7
+
+cat << EOF;:
+function CLEAN() {}
+EOF
+
+cat << EOF{}9
+function CLEAN() {}
+EOF{}9
+
+cat << EOF\ 10
+function CLEAN() {}
+EOF 10
+
+cat << EOF\;11
+function CLEAN() {}
+EOF;11
+
+cat << EOF\12
+function CLEAN() {}
+EOF12
+
+cat << EOF\\13
+function CLEAN() {}
+EOF\13
+
+cat << EOF\\1\\4
+function CLEAN() {}
+EOF\1\4
+
+cat << \<EOF15\>
+function CLEAN() {}
+<EOF15>
+
+cat << "E\OF16"
+function CLEAN() {}
+E\OF16
+
+cat << 'E\OF17'
+function CLEAN() {}
+E\OF17
+
+cat << EOF18|:
+function CLEAN() {}
+EOF18
+
+cat << EOF19>/dev/null
+echo -e CLEAN() {}
+EOF19
diff --git a/test/test_checkbashisms b/test/test_checkbashisms
index db31a58..1cbeb71 100755
--- a/test/test_checkbashisms
+++ b/test/test_checkbashisms
@@ -105,6 +105,10 @@ test_heredoc_with_dash() {
     clean "bashisms/heredoc-with-dash.sh"
 }
 
+test_heredoc_with_others() {
+    clean "bashisms/heredoc-with-others.sh"
+}
+
 test_jobs() {
     found "bashisms/jobs.sh" "$(cat bashisms/jobs.sh.out)"
 }

-- 
Git repository for devscripts



More information about the devscripts-devel mailing list