aboutsummaryrefslogtreecommitdiff
path: root/src/meta.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-01-02 19:24:03 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-01-02 19:24:03 +0200
commitc44f0f83448b426935e9aeb07c5d761299144d14 (patch)
tree696d15a11587c94e3a5f8b356f3f91adc73c789a /src/meta.c
parent1b0a4de9fa73dd2453cbd2902c2cd4d000f4abe7 (diff)
downloadwydawca-c44f0f83448b426935e9aeb07c5d761299144d14.tar.gz
wydawca-c44f0f83448b426935e9aeb07c5d761299144d14.tar.bz2
$- construct (similar to m4's dnl).
* src/meta.c: Special construct $- removes the character immediately following it. * doc/wydawca.texi: Document the use of $- construct. * src/triplet.c (expand_triplet_ls_full) (expand_triplet_ls_upload): Keep trailing newline in the expansion. * tests/etc/notify.rc: Update.
Diffstat (limited to 'src/meta.c')
-rw-r--r--src/meta.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/meta.c b/src/meta.c
index fc88c6b..545ac36 100644
--- a/src/meta.c
+++ b/src/meta.c
@@ -78,6 +78,11 @@ meta_expand_string (const char *string, struct metadef *def, void *data,
p++;
break;
+ case '-':
+ if (*++p)
+ p++;
+ break;
+
case '{':
e = strchr (p + 1, '}');
if (e && (s = find_expansion_word (p + 1, e - p - 1, def, data)))

Return to:

Send suggestions and report system problems to the System administrator.