aboutsummaryrefslogtreecommitdiffstats
path: root/test/fnmatch.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-03-24 15:17:54 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-03-24 15:17:54 +0200
commit25178eae557724b85b3ff0cdc296a897c5fc4350 (patch)
tree0a64de7a97dfc03d52fde91b824dadc2f4f93a76 /test/fnmatch.awk
parentde74132cd8ee9d3a54c7661f15d787e0b232d328 (diff)
downloadegawk-25178eae557724b85b3ff0cdc296a897c5fc4350.tar.gz
egawk-25178eae557724b85b3ff0cdc296a897c5fc4350.tar.bz2
egawk-25178eae557724b85b3ff0cdc296a897c5fc4350.zip
More portability: mostly for SGI IRIX.
Diffstat (limited to 'test/fnmatch.awk')
-rw-r--r--test/fnmatch.awk6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/fnmatch.awk b/test/fnmatch.awk
index c0885074..b3717549 100644
--- a/test/fnmatch.awk
+++ b/test/fnmatch.awk
@@ -1,11 +1,13 @@
@load "fnmatch"
BEGIN {
- print "FNM_NOMATCH =", FNM_NOMATCH
# can't print the values; they vary from system to system
for (i in FNM)
printf("\"%s\" is an element in FNM\n", i)
+ # can't even print this
+ # print "FNM_NOMATCH =", FNM_NOMATCH
printf("fnmatch(\"*.a\", \"foo.a\", 0) = %d\n", fnmatch("*.a", "foo.a", 0) )
- printf("fnmatch(\"*.a\", \"foo.c\", 0) = %d\n", fnmatch("*.a", "foo.c", 0))
+ if (fnmatch("*.a", "foo.c", 0) == FNM_NOMATCH)
+ printf("fnmatch(\"*.a\", \"foo.c\", 0) == FNM_NOMATCH\n")
}