changeset 544:56317c9226ba

FIX: Reading from a tsv requires a TAB IFS
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 10 Sep 2024 01:54:42 +0200
parents 38cbc3b70078
children 566ecdd9e73b
files share/local-bsdtools/common.subr
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/share/local-bsdtools/common.subr	Tue Sep 10 01:52:30 2024 +0200
+++ b/share/local-bsdtools/common.subr	Tue Sep 10 01:54:42 2024 +0200
@@ -313,7 +313,7 @@
         jls --libxo=json,no-locale -d dying name path \
         | LC_ALL=C "${JQ}" -r $'.["jail-information"].jail[] | [.dying, .name, .path] | @tsv ' \
         | { # '
-            while IFS=' '$'\t' read -r _dying _name _path ; do
+            while IFS=$'\t' read -r _dying _name _path ; do
                 if [ "${_path}" = "${_location}" ]; then
                     if [ "${_dying}" != "false" ]; then
                         echo "Jail \`${_name}' is currently dying" 1>&2