Use "read" without escaping

This commit is contained in:
Lars Kruse 2020-02-08 04:58:06 +01:00
parent 974b07a1af
commit e439fd79a1
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ PLUGINS=$(echo "$RES" | xargs -r -n 1 echo | sort | xargs echo)
FUNCTIONS="list nodes config fetch version quit"
HOSTNAME=$(hostname -f 2>/dev/null || hostname)
echo "# munin node at $HOSTNAME"
while read arg0 arg1
while read -r arg0 arg1
do
arg0=$(echo "$arg0" | xargs)
arg1=$(echo "$arg1" | xargs)