aboutsummaryrefslogtreecommitdiffstats
path: root/test/readdir0.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-07-29 16:33:00 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-07-29 16:33:00 +0300
commit82816b279615b27f7c4f87349a8c830a96939d8c (patch)
treecf30bf71692e090ca6ca4934e65184aa990a3055 /test/readdir0.awk
parent207fc1458c7f168822e454a89f23428c64163427 (diff)
downloadegawk-82816b279615b27f7c4f87349a8c830a96939d8c.tar.gz
egawk-82816b279615b27f7c4f87349a8c830a96939d8c.tar.bz2
egawk-82816b279615b27f7c4f87349a8c830a96939d8c.zip
Finish work on iop management. New readdir test.
Diffstat (limited to 'test/readdir0.awk')
-rw-r--r--test/readdir0.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/readdir0.awk b/test/readdir0.awk
new file mode 100644
index 00000000..54306f10
--- /dev/null
+++ b/test/readdir0.awk
@@ -0,0 +1,9 @@
+{
+ ino = $1
+ name = $NF
+ type = substr($2, 1, 1)
+ if (type == "-")
+ type = "f"
+
+ printf "%s/%s/%s\n", ino, name, type
+}