changeset 131:bf943a2f0f37

use printf safely
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Fri, 09 Jul 2021 14:20:51 +0000
parents 5efc3985d513
children 128b18459f9e
files bin/clm.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/clm.sh	Fri Jul 09 13:46:10 2021 +0000
+++ b/bin/clm.sh	Fri Jul 09 14:20:51 2021 +0000
@@ -1,4 +1,4 @@
 #!/usr/bin/bash
-egrep '^Last-Modified: ' | cut -f 2- -d ' ' | tr -d '\r' | { readarray -t a ; IFS=';' ; printf "${a[*]}" ; } >> "$1"
+egrep '^Last-Modified: ' | cut -f 2- -d ' ' | tr -d '\r' | { readarray -t a ; IFS=';' ; printf %s "${a[*]}" ; } >> "$1"
 echo >> "$1"