pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress/tools/files Added comments.
details: https://anonhg.NetBSD.org/pkgsrc/rev/9d731fbefb8c
branches: trunk
changeset: 503402:9d731fbefb8c
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Nov 19 21:31:10 2005 +0000
description:
Added comments.
diffstat:
regress/tools/files/awk-test.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 91f7a20fb7fc -r 9d731fbefb8c regress/tools/files/awk-test.sh
--- a/regress/tools/files/awk-test.sh Sat Nov 19 21:28:35 2005 +0000
+++ b/regress/tools/files/awk-test.sh Sat Nov 19 21:31:10 2005 +0000
@@ -1,9 +1,10 @@
#! /bin/sh
-# $NetBSD: awk-test.sh,v 1.1.1.1 2005/11/19 21:27:06 rillig Exp $
+# $NetBSD: awk-test.sh,v 1.2 2005/11/19 21:31:10 rillig Exp $
#
set -e
+# usage: assert_equal <expected> <got>
assert_equal() {
case $1 in
"$2") ;;
@@ -20,4 +21,6 @@
test_assignment "foo" "foo"
test_assignment "foo bar baz" "foo bar baz"
+# The Solaris /usr/bin/awk does not conform to the POSIX specification,
+# but passes the right hand side of the assignment uninterpreted.
test_assignment "CPPFLAGS=\\\"-Dfoo=bar\\\"" "CPPFLAGS=\"-Dfoo=bar\""
Home |
Main Index |
Thread Index |
Old Index