changeset 553:09c45b00333c

common.subr: Use printf instead of echo where appropriate
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 11 Sep 2024 12:09:48 +0200
parents 742cf1eed463
children c8348c707928
files share/local-bsdtools/common.subr
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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