diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-10-26 00:20:57 -0400 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-10-26 00:20:57 -0400 |
commit | 6d7e225fa1dded120dd959074c0d269c38459713 (patch) | |
tree | d399065394b3dcf5228e0a253036029125ab5206 /txr.1 | |
parent | 2987f69f690d8433ad3aaa9e9f41949455ada2cb (diff) | |
download | txr-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.1 | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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" |