summaryrefslogtreecommitdiffstats
path: root/test/bashisms/command.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/bashisms/command.sh6
-rw-r--r--test/bashisms/command.sh.out4
2 files changed, 10 insertions, 0 deletions
diff --git a/test/bashisms/command.sh b/test/bashisms/command.sh
new file mode 100644
index 0000000..ae60c97
--- /dev/null
+++ b/test/bashisms/command.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+command test
+command -p test
+command -v test # BASHISM
+command -V test # BASHISM
diff --git a/test/bashisms/command.sh.out b/test/bashisms/command.sh.out
new file mode 100644
index 0000000..7a6b081
--- /dev/null
+++ b/test/bashisms/command.sh.out
@@ -0,0 +1,4 @@
+possible bashism in bashisms/command.sh line 5 ('command' with option other than -p):
+command -v test # BASHISM
+possible bashism in bashisms/command.sh line 6 ('command' with option other than -p):
+command -V test # BASHISM