The inst module expects `opt_get_argv()` to print all command line
arguments in one line, however the behavior of `opt_get_argv()` has
been changed to print arguments line-by-line.
This commit modifies the inst module so that it expects arguments to
be returned one per line by `opt_get_argv()`.
local owner
local semval
local state
- local argv
+ local argv
local status_text
local status_time
local timestamp
owner="${sem##*/}"
semval=$(sem_peek "$sem")
- if ! argv=$(<"$sem.argv") 2> /dev/null; then
+ if ! readarray -t argv < "$sem.argv" 2> /dev/null; then
continue
fi
state="RUNNING"
fi
- echo "$owner $state [$timestamp:$status_text] $instname $argv"
+ echo "$owner $state [$timestamp:$status_text] $instname ${argv[*]}"
done < <(find "$instpath" -regex ".*/[0-9]+")
return 0