lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] (no subject)


From: Greg Chicares
Subject: [lmi-commits] (no subject)
Date: Sat, 16 Jul 2016 00:55:53 +0000 (UTC)

branch: master
commit 53d3a3c0c51fe687fa8015d1effd8a8ee8d4b8b5
Author: Gregory W. Chicares <address@hidden>
Date:   Sat Jul 16 00:55:19 2016 +0000

    Make 'test_coding_rules_test.sh' portable (VZ)
    
    The prior version didn't work with dash. See:
      http://lists.nongnu.org/archive/html/lmi/2016-07/msg00031.html
---
 test_coding_rules_test.sh |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test_coding_rules_test.sh b/test_coding_rules_test.sh
index fc3d445..5f5cc9a 100755
--- a/test_coding_rules_test.sh
+++ b/test_coding_rules_test.sh
@@ -34,7 +34,7 @@ good_copyright="...Copyright (C)...`date -u +'%Y'`..."
 
 good_url="...http://savannah.nongnu.org/projects/lmi...";
 
-boilerplate="$good_copyright"$'\n'"$good_url"
+boilerplate=$(printf "$good_copyright\n$good_url")
 
 # Files in general.
 
@@ -130,25 +130,25 @@ $boilerplate
 Spaces are permitted; they  can   be    consecutive.
 EOF
 
-ascii_ff=$'\f'
+ascii_ff=$(printf "\f")
 cat >eraseme_whitespace_001 <<EOF
 $boilerplate
 $ascii_ff
 EOF
 
-ascii_cr=$'\r'
+ascii_cr=$(printf "\r")
 cat >eraseme_whitespace_002 <<EOF
 $boilerplate
 $ascii_cr
 EOF
 
-ascii_ht=$'\t'
+ascii_ht=$(printf "\t")
 cat >eraseme_whitespace_003 <<EOF
 $boilerplate
 $ascii_ht
 EOF
 
-ascii_vt=$'\v'
+ascii_vt=$(printf "\v")
 cat >eraseme_whitespace_004 <<EOF
 $boilerplate
 $ascii_vt



reply via email to

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