Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorGiovanni Mascellani <mascellani@poisson.phc.unipi.it>2016-05-30 13:33:10 +0200
committerArthur de Jong <arthur@arthurdejong.org>2016-06-03 11:19:07 +0200
commit2ba95606dd95f68d423942b51e0e5b8d3d9ec145 (patch)
tree2bcf50013606e5d2d11bb2509fa30b6ead14bb71 /man
parent3a4860cd1d7175e7723307c31aeda68c24ef2309 (diff)
Support substituting expresions of type ${var:offset:length}
Diffstat (limited to 'man')
-rw-r--r--man/nslcd.conf.5.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/man/nslcd.conf.5.xml b/man/nslcd.conf.5.xml
index 0bcdd2d..d221675 100644
--- a/man/nslcd.conf.5.xml
+++ b/man/nslcd.conf.5.xml
@@ -1031,6 +1031,17 @@
is set, otherwise substitute the empty string
</para></listitem>
</varlistentry>
+ <varlistentry> <!-- since 0.9.7 -->
+ <term><literal>${attr:offset:length}</literal></term>
+ <listitem><para>
+ will substitute <literal>length</literal> characters (actually
+ bytes) starting from position <literal>offset</literal> (which
+ is counted starting at zero); the substituted string is
+ truncated if it is too long; in particular, it can be of length
+ zero (if <literal>length</literal> is zero or
+ <literal>offset</literal> falls out of the original string)
+ </para></listitem>
+ </varlistentry>
<varlistentry> <!-- since 0.9.0 -->
<term><literal>${attr#word}</literal></term>
<listitem><para>