[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Txr-users] New features in GIT.
From: |
Kaz Kylheku |
Subject: |
[Txr-users] New features in GIT. |
Date: |
Sun, 06 Nov 2011 19:45:03 -0800 |
User-agent: |
Roundcube Webmail/0.4 |
Hi all,
There are two new features implemented.
One is access to environment variables (works on Win32 also).
The directive
@(next :env)
causes input to come from the environment vector. It looks like a
virtual text file in which lines have the form VAR=VALUE.
The other feature is a directive called @(gather). This directive
allows queries to match text which is out of order. As a simple
example, consider, say, e-mail headers:
@(gather)
From: @FROM
Subject: @SUBJECT
To: @TO
Cc: @CC
@(end)
These headers can appear in any order. The gather directive takes care
of that. Plus it has provisions for doing multi-line items, and takes a
:vars parameter so that you can specify required variables and optional
variables with default values.
There is no "horizontal flavor" of gather.
Of course, gather works nicely with environment variables:
@(next :env)
@(gather (user home (shell "/bin/sh")))
address@hidden
address@hidden
address@hidden
@(end)
This will fail if the USER or HOME environment variables do not exist.
If SHELL does not exist, it will default to "/bin/sh".
All is documented,
Cheers ...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Txr-users] New features in GIT.,
Kaz Kylheku <=