Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test/util/vercmptest.sh
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-02 13:48:21 -0500
committerDan McGee <dan@archlinux.org>2011-04-04 19:03:27 -0500
commit38e5a4a54f1be3b678e5ab55b97f81be88824119 (patch)
tree2f884a325dfb7d376c380eb6b9fa0e9208aa3327 /test/util/vercmptest.sh
parent0458572a6e9db0030f305c25e951434a099ae754 (diff)
test: fix invalid usage of 'type -p'
The vercmptest script needs to be invoked as a bash script for this to be valid; the -p operator is interpreted as an argument to look up by sh. This goes way back to commit 3bf9448943dc0b, done to solve http://mailman.archlinux.org/pipermail/pacman-dev/2008-July/007180.html. Saw this problem running in a virtual machine where sh is not bash, but in fact dash: user@debian-powerpc:~/projects/pacman$ ./test/util/vercmptest.sh src/util/vercmp-p: not found src/util/vercmp is src/util/vercmp vercmp binary (src/util/vercmp) could not be located Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/util/vercmptest.sh')
-rwxr-xr-xtest/util/vercmptest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/util/vercmptest.sh b/test/util/vercmptest.sh
index a9ed3b2a..6b3869c5 100755
--- a/test/util/vercmptest.sh
+++ b/test/util/vercmptest.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# vercmptest - a test suite for the vercmp/libalpm program
#