automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATCH: silence Shellcheck warning


From: Ben Elliston
Subject: PATCH: silence Shellcheck warning
Date: Sun, 22 Jul 2018 08:25:04 +1000
User-agent: NeoMutt/20170609 (1.8.3)

This patch silences a warning from Shellcheck about using old-style
`...` command substitutions.

Ben


commit 4d35c7aae97234bf055519075ef03cd4090a1dfc
Author: Ben Elliston <address@hidden>
Date:   Sun Jul 22 08:22:44 2018 +1000

    * missing: Use $(..) command substitution syntax.

diff --git a/lib/missing b/lib/missing
index 625aeb1..10dc11e 100755
--- a/lib/missing
+++ b/lib/missing
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Common wrapper for a few potentially missing GNU programs.
 
-scriptversion=2018-03-07.03; # UTC
+scriptversion=2018-07-21.22; # UTC
 
 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
 # Originally written by Fran,cois Pinard <address@hidden>, 1996.
@@ -129,10 +129,10 @@ program_details ()
 give_advice ()
 {
   # Normalize program name to check for.
-  normalized_program=`echo "$1" | sed '
+  normalized_program=$(echo "$1" | sed '
     s/^gnu-//; t
     s/^gnu//; t
-    s/^g//; t'`
+    s/^g//; t')
 
   printf '%s\n' "'$1' is $msg."
 

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]