[SCM] Git repository for devscripts branch, master, updated. v2.12.4-72-gcf18b4b

Benjamin Drung bdrung at debian.org
Sat Nov 10 23:00:36 UTC 2012


The following commit has been merged in the master branch:
commit fda09d1c1b75382d4c6a3423f49251beb0a365d6
Author: Benjamin Drung <bdrung at debian.org>
Date:   Sat Nov 10 23:44:16 2012 +0100

    Add test case from Raphael Geissert for previous commit.

diff --git a/test/bashisms/underscore-var.sh b/test/bashisms/underscore-var.sh
new file mode 100644
index 0000000..a4f2ea4
--- /dev/null
+++ b/test/bashisms/underscore-var.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo BASHISM $_
diff --git a/test/bashisms/underscore-var.sh.out b/test/bashisms/underscore-var.sh.out
new file mode 100644
index 0000000..dbfe699
--- /dev/null
+++ b/test/bashisms/underscore-var.sh.out
@@ -0,0 +1,2 @@
+possible bashism in bashisms/underscore-var.sh line 3 ($_):
+echo BASHISM $_
diff --git a/test/test_checkbashisms b/test/test_checkbashisms
index 226a62b..1e2da38 100755
--- a/test/test_checkbashisms
+++ b/test/test_checkbashisms
@@ -179,6 +179,10 @@ test_traps() {
     found "bashisms/traps.sh" "$(cat bashisms/traps.sh.out)"
 }
 
+test_underscore_var() {
+    found "bashisms/underscore-var.sh" "$(cat bashisms/underscore-var.sh.out)"
+}
+
 test_unknown_fns() {
     found "bashisms/unknown-fns.sh" "$(cat bashisms/unknown-fns.sh.out)"
 }

-- 
Git repository for devscripts



More information about the devscripts-devel mailing list