summaryrefslogtreecommitdiffstats
path: root/tests/001/query-3.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-07-31 17:26:18 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-07-31 17:28:32 -0700
commitf8010dc6f95b967ffc6b653b33300e4b4d850c14 (patch)
tree46a5d790b2fdc14ace7a384f65b5e7f2be2cee75 /tests/001/query-3.txr
parent5c880c971907b6a55aac5649b0d07e9c748e6e5e (diff)
downloadtxr-011.tar.gz
txr-011.tar.bz2
txr-011.zip
txr-011 2009-09-25txr-011
Diffstat (limited to 'tests/001/query-3.txr')
-rw-r--r--tests/001/query-3.txr21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/001/query-3.txr b/tests/001/query-3.txr
new file mode 100644
index 00000000..ec12c9f2
--- /dev/null
+++ b/tests/001/query-3.txr
@@ -0,0 +1,21 @@
+@#
+@# This file is in the public domain.
+@# It was authored by Kaz Kylheku <kkylheku@gmail.com> in 2009
+@#
+@/.*/@# skip header
+@(collect)
+@ (coll)@{TOKEN /[^ ]+/}@(end)
+@ (bind (UID PID PPID C STIME TTY TIME . CMD) TOKEN)
+@ (cat CMD) @#
+@ (forget TOKEN)
+@(end)
+@(output)
+@(repeat)
+@{UID 8} @{PID -5}
+@(first)
+UID PID
+@{UID 8} @{PID -5}
+@(empty)
+No processes!
+@(end)
+@(end)