From: Arkadiusz Miƛkiewicz Date: Thu, 30 Aug 2018 15:15:54 +0000 (+0200) Subject: echo -E is not POSIX parameter. Use printf instead. X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=299d3048331470778801b7edd212e103ac9c29fe;hp=de35de1d79f044c655890b3bfa0410348254bf6d;p=projects%2Fpld-builder.new.git echo -E is not POSIX parameter. Use printf instead. --- diff --git a/client/make-request.sh b/client/make-request.sh index c6ddfda..b647e15 100755 --- a/client/make-request.sh +++ b/client/make-request.sh @@ -123,7 +123,7 @@ print >> sys.stdout, "Request queued via HTTP." # htmlspecialchars: escape <, > and & hsc() { local input=$1 - echo -E "$input" | sed -e 's,&,\&,g;s,<,\<,g;s,>,\>,g' + printf "%s\n" "$input" | sed -e 's,&,\&,g;s,<,\<,g;s,>,\>,g' } # simple df_fetcher, based on packages/fetchsrc_request @@ -776,7 +776,7 @@ gen_req() { if [ "$command" ]; then bid=$(uuidgen) - echo -E >&2 "* Command: $command" + printf "%s\n" "* Command: $command" >&2 echo " " echo " " hsc "$command" @@ -843,7 +843,7 @@ gen_req() { if [ "$no_depend" = yes ]; then depend= fi - echo -E >&2 "* Post-Command: $post_command" + printf "%s\n" "* Post-Command: $post_command" >&2 echo " " echo " " hsc "$post_command"