aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-25 16:03:42 +0000
committerChris Lattner <sabre@nondot.org>2008-06-25 16:03:42 +0000
commit21b9d283eae05e1e50d011c9038d77eb7bf02f49 (patch)
tree9ee295b8f38566bcaa93989cad2409d6e3aceee8
parent28873106309db515d58889a4c4fa3e0a92d1b60e (diff)
simplify shell syntax to work better on solaris, patch by
Nathan Keynes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52721 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xtest/Scripts/count2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Scripts/count b/test/Scripts/count
index cc0355208b..1c3d7e0953 100755
--- a/test/Scripts/count
+++ b/test/Scripts/count
@@ -9,7 +9,7 @@
set -e
set -u
-input_lines=$(wc -l)
+input_lines=`wc -l`
if [ "$input_lines" -ne "$1" ]; then
echo "count: expected $1 lines and got ${input_lines}."
exit 1