newsGNU Rush - News: Version 1.9

 
 
Latest News
GNU rush version 2.3 posted by gray, Sat 16 Jul 2022 05:20:40 PM UTC
Version 2.2 posted by gray, Sun 02 Jan 2022 02:33:09 PM UTC
Version 2.1 posted by gray, Fri 12 Jul 2019 07:45:17 PM UTC
Version 2.0 posted by gray, Mon 01 Jul 2019 08:15:26 AM UTC
Version 1.9 posted by gray, Wed 24 Apr 2019 06:02:12 AM UTC

Version 1.9

Item posted by Sergey Poznyakoff <gray> on Wed 24 Apr 2019 06:02:12 AM UTC.

Version 1.9 is available for download from GNU and Puszcza archives. It should soon become available in the mirrors too.

New in this version:

Backreference expansion


Arguments to tranformations, chroot and chdir statements can contain references to parenthesized groups in the recent regular expression match. Such references are replaced with the strings that matched the corresponding groups. Syntactically, a backreference expansion is a percent sign followed by one-digit number of the subexpression (1-based, %0 refers to entire matched line). For example


 rule X
   command ^cd (.+) && (.+)
   chdir %1
   set %2


User-defined variables


The configuration file can define new variables or redefine the built-in ones using the setvar statement:


  setvar[VAR] PATTERN


Here, VAR is the variable name, and PATTERN is its new value. The PATTERN is subject to variable and backreference expansion.

User-defined variables can be unset using the "unsetvar" statement:


  unsetvar[VAR]


Unsetting a built-in variable, previously redefined using the setvar statement causes the user-supplied definition to be forgotten and the built-in one restored.

Shell-like variable expansion


The following shell-like notations are supported:


${VAR:-WORD}   Use Default Values
${VAR:=WORD}   Assign Default Values
${VAR:?WORD}   Display Error if Null or Unset
${VAR:+WORD}   Use Alternate Value


New script rush-po for extracting translatable strings from the configuration


The script rush-po.awk that was used in prior versions has been withdrawn.

 

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code