[git] GPG-ERROR - branch, master, updated. libgpg-error-1.32-15-ga338801

[email protected] (by NIIBE Yutaka)
Newsgroups gmane.comp.encryption.gpg.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Error codes used by GnuPG et al.".

The branch, master has been updated
       via  a338801aa4bac9a3551729598bcb0ca41882cdb9 (commit)
      from  4c2601a95f06efd352ad407add71a7ea6bab8152 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a338801aa4bac9a3551729598bcb0ca41882cdb9
Author: NIIBE Yutaka <[email protected]>
Date:   Thu Sep 20 12:45:36 2018 +0900

    gpg-error-config: Use expr to remove var in expression.
    
    * src/gpg-error-config-new.in (remove_var_expr): Use expr.
    
    --
    
    For OpenBSD's sh, it results "bad substitusion".  Now, we use expr.
    Tested on OpenBSD 6.2.
    
    Signed-off-by: NIIBE Yutaka <[email protected]>

diff --git a/src/gpg-error-config-new.in b/src/gpg-error-config-new.in
index 1a03cf9..3b31a68 100644
--- a/src/gpg-error-config-new.in
+++ b/src/gpg-error-config-new.in
@@ -50,7 +50,7 @@ remove_var_expr () {
     ___varname=$1
     shift
 
-    eval echo \"\${@#\\\$\\\{$___varname\\\}}\"
+    expr "$*" : "\${$___varname}\\(.*\\)"
 }
 
 # Given a string, substitute variables.

-----------------------------------------------------------------------

Summary of changes:
 src/gpg-error-config-new.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.