[projects/pld-builder.new] echo -E is not POSIX parameter. Use printf instead.
arekm
arekm at pld-linux.org
Thu Aug 30 17:16:25 CEST 2018
commit 299d3048331470778801b7edd212e103ac9c29fe
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Aug 30 17:15:54 2018 +0200
echo -E is not POSIX parameter. Use printf instead.
client/make-request.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
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 " <batch id='$bid' depends-on=''>"
echo " <command flags='$command_flags'>"
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 " <batch id='$bid' depends-on='$depend'>"
echo " <command flags='$command_flags'>"
hsc "$post_command"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/299d3048331470778801b7edd212e103ac9c29fe
More information about the pld-cvs-commit
mailing list