aboutsummaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-07-24 14:14:47 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-07-24 14:27:11 +0300
commitc047ed856d6d23137ef1df01c1297db36bad3f8c (patch)
tree1999db947cb5e38df8a85d314daa0eef7c7624d0 /NEWS
parent07ea006a31def46ba6ea936dbea366219152d9b6 (diff)
downloadwydawca-c047ed856d6d23137ef1df01c1297db36bad3f8c.tar.gz
wydawca-c047ed856d6d23137ef1df01c1297db36bad3f8c.tar.bz2
Use wordsplit to expand variables in strings.
* NEWS: Raise version number. * configure.ac: Link wydawca.h to include/wydawca Raise version number * doc/wydawca.texi: Document changes. * etc/wydawca.rc: Fix the syntax. * grecs: Upgrace. * include/wydawca/wydawca.h (wy_vlog): New proto. (wy_log, wy_dbg): Format is const char *. (wy_triplet_t): Change typedef. (wy_metadef): Remove struct. (wy_vardef): New struct. (wy_triplet_expand_param) (wy_expand_copy): New protos. * modules/logstat/mod_logstat.c: Update. * modules/mailutils/Makefile.am (AM_CPPFLAGS): Modify, * modules/mailutils/mod_mailutils.c: Update. * src/Makefile.am (wydawca_SOURCES): Remove meta.c * src/dictionary.c: Fix comment. * src/directive.c (directive_get_value): Triplet pointer is const. * src/meta.c: Remove. * src/timer.c: (timer_fill_meta) (timer_free_meta): Remove. * src/triplet.c: Use wordsplit for expansions. * src/wydawca.c (wy_vlog): New function. (wy_stat_expansion): New function. * src/wydawca.h: Remove metadef protos. * tests/etc/notify.rcin: Update variable reference syntax.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS57
1 files changed, 56 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d99ce47..b73895b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,62 @@
-Wydawca NEWS -- history of user-visible changes. 2019-07-22
+Wydawca NEWS -- history of user-visible changes. 2019-07-24
See the end of file for copying conditions.
Please send Wydawca bug reports to <bug-wydawca@gnu.org.ua>.
+
+Version 3.0.90 (git)
+
+* Variable expansion syntax
+
+This release uses wordsplit v1.0-9-g7eaa3c4. Normal shell like
+expansion is allowed. This means that curly braces around variable
+names are optional and that the following forms are now allowed:
+
+${VARIABLE:-WORD}
+ "Use Default Values". If VARIABLE is unset or null, the
+ expansion of WORD is substituted. Otherwise, the value of
+ VARIABLE is substituted.
+
+${VARIABLE:=WORD}
+ "Assign Default Values". If VARIABLE is unset or null, the
+ expansion of WORD is assigned to variable. The value of
+ VARIABLE is then substituted.
+
+ The assigned value remains in effet during expansion of the
+ current string.
+
+${VARIABLE:?WORD}
+ "Display Error if Null or Unset". If VARIABLE is null or
+ unset, the expansion of WORD (or a message to that effect if
+ WORD is not present) is output to the current logging channel.
+ Otherwise, the value of VARIABLE is substituted.
+
+${VARIABLE:+WORD}
+ "Use Alternate Value". If VARIABLE is null or unset, nothing
+ is substituted, otherwise the expansion of WORD is
+ substituted.
+
+* Handling of undefined variables
+
+Attempt to expand undefined variable causes fatal error. Use one of
+the advanced forms described above to handle such cases gracefully.
+
+* Variable names
+
+Several variable names have changed. Names that contained dash,
+now use underscore instead. These are:
+
+ Old name Use this instead
+ ------------------- -------------------
+ stat:check-failures stat:check_failures
+ dest-dir dest_dir
+ source-dir source_dir
+ user:real-name user:real_name
+
+* $- is gone
+
+Trailing newlines are automatically removed from all variable
+expansions. Consequently, the $- marker (delete to the end of line)
+has been removed.
Version 3.0, 2019-07-22

Return to:

Send suggestions and report system problems to the System administrator.