[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: spencer1-locale and awk -v
From: |
Jim Meyering |
Subject: |
Re: spencer1-locale and awk -v |
Date: |
Thu, 25 Mar 2010 16:15:42 +0100 |
Tony Abou-Assaleh wrote:
> 'make check' on Mac OS X causes spencer1-locale to fail with an error
> that awk doesn't support -v option. The attached patch fixes it by
> adding a space after -v.
Thanks, Tony.
I've just pushed this, and it will be part of 2.6.1.
>From 74ab780290c4cfdd71f4981d011041d44fbffffa Mon Sep 17 00:00:00 2001
From: Tony Abou-Assaleh <address@hidden>
Date: Thu, 25 Mar 2010 16:12:50 +0100
Subject: [PATCH] tests: use awk's -v option more portably
* tests/spencer1-locale: Add a space between awk's "-v" option and
the following VAR=value string, to avoid test failure on Mac OS X.
---
tests/spencer1-locale | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/spencer1-locale b/tests/spencer1-locale
index f0b2011..fa9909d 100755
--- a/tests/spencer1-locale
+++ b/tests/spencer1-locale
@@ -15,7 +15,7 @@ fail=0
# . . . and the following by Henry Spencer.
-${AWK-awk} -vextra_locale=$LOCALE_FR_UTF8 \
+${AWK-awk} -v extra_locale=$LOCALE_FR_UTF8 \
-f "$abs_srcdir/spencer1-locale.awk" "$abs_srcdir/spencer1.tests" \
> spencer1-locale.script || fail=1
--
1.7.0.3.435.g097f4