# HG changeset patch # User Franz Glasner # Date 1726049388 -7200 # Node ID 09c45b00333c2dbaca0dbce989b82338ab3579ee # Parent 742cf1eed46307e42f0929c1b08f91d8533e1e8d common.subr: Use printf instead of echo where appropriate diff -r 742cf1eed463 -r 09c45b00333c share/local-bsdtools/common.subr --- a/share/local-bsdtools/common.subr Wed Sep 11 12:02:41 2024 +0200 +++ b/share/local-bsdtools/common.subr Wed Sep 11 12:09:48 2024 +0200 @@ -197,7 +197,7 @@ ;; esac done - echo "${_res}" + printf '%s' "${_res}" } @@ -229,7 +229,7 @@ | { while IFS=$'\t' read -r _ds _mount _rest ; do if [ "$_mount" = "$_mountpoint" ]; then - echo "${_ds}" + printf '%s' "${_ds}" return 0 fi done @@ -244,7 +244,7 @@ | { while IFS=' '$'\t' read -r _ds _mount _rest ; do if [ "$_mount" = "$_mountpoint" ]; then - echo "${_ds}" + printf '%s' "${_ds}" return 0 fi done @@ -323,7 +323,7 @@ echo "Jail \`${_name}' is currently dying" 1>&2 return 2 fi - echo "${_name}" + printf '%s' "${_name}" return 0 fi done @@ -338,7 +338,7 @@ echo "Jail \`${_name}' is currently dying" 1>&2 return 2 fi - echo "${_name}" + printf '%s' "${_name}" return 0 fi done