summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-10-26 00:20:57 -0400
committerKaz Kylheku <kaz@kylheku.com>2011-10-26 00:20:57 -0400
commit6d7e225fa1dded120dd959074c0d269c38459713 (patch)
treed399065394b3dcf5228e0a253036029125ab5206 /txr.1
parent2987f69f690d8433ad3aaa9e9f41949455ada2cb (diff)
downloadtxr-6d7e225fa1dded120dd959074c0d269c38459713.tar.gz
txr-6d7e225fa1dded120dd959074c0d269c38459713.tar.bz2
txr-6d7e225fa1dded120dd959074c0d269c38459713.zip
Fixed lame @(cat) directive, without obsolescence phase.
* match.c (v_cat): Rewritten. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.112
1 files changed, 7 insertions, 5 deletions
diff --git a/txr.1 b/txr.1
index 223f464d..b6445527 100644
--- a/txr.1
+++ b/txr.1
@@ -2043,15 +2043,17 @@ levels of nesting such that elements are at the appropriate depth.
.SS The Cat Directive
The @(cat) directive converts a list variable into a single
-piece of text. Optionally, a separating piece of text can be inserted
-in between the elements. This piece is written to the right of
-the @(cat) directive, and spans to the end of the line. It may
-contain variable substitutions.
+piece of text. The syntax is:
+
+ @(cat VAR [ SEP ])
+
+The SEP argument specifies a separating piece of text. If no separator
+is specified, then a single space is used.
Example:
pattern: @(coll)@{a /[^ ]+/}@(end)
- @(cat a):
+ @(cat a ":")
data: 1 2 3 4 5
result: a="1:2:3:4:5"