aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-11-20 06:02:11 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-11-20 06:02:11 +0200
commite099abb7786b66f3385deb1f55b1d58c83a0a8ba (patch)
tree8dd964721bfae716e1e7be23182cf2c4ab1f1c87
parent733c86921bbd3bbeb63adce2a242a73236556ada (diff)
downloadegawk-e099abb7786b66f3385deb1f55b1d58c83a0a8ba.tar.gz
egawk-e099abb7786b66f3385deb1f55b1d58c83a0a8ba.tar.bz2
egawk-e099abb7786b66f3385deb1f55b1d58c83a0a8ba.zip
Make readdir test work if group name has spaces.
-rw-r--r--test/ChangeLog7
-rw-r--r--test/readdir0.awk2
2 files changed, 8 insertions, 1 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 1193a8b5..b8ca8236 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,10 @@
+2013-11-20 Arnold D. Robbins <arnold@skeeve.com>
+
+ * readdir0.awk: Use `ls -lan' to get numeric user and group ID
+ numbers. This keeps the number of fields correct and consistent, even
+ on systems (like, oh, say, Windows with Cygwin) where group names
+ can contain spaces.
+
2013-11-07 Arnold D. Robbins <arnold@skeeve.com>
Solaris fixes.
diff --git a/test/readdir0.awk b/test/readdir0.awk
index 3a114fcd..f16f4818 100644
--- a/test/readdir0.awk
+++ b/test/readdir0.awk
@@ -13,7 +13,7 @@ BEGIN {
BEGIN {
ls_afi = "ls -afi .."
- ls_al = "ls -la .. | sed 1d"
+ ls_al = "ls -lna .. | sed 1d"
for (i = 1; (ls_afi | getline) > 0; i++) {
# inode number is $1, filename is read of record