os/printenv

This commit is contained in:
Marc Beninca 2024-08-31 01:10:37 +02:00
parent 2b37cc9479
commit e0552167bf
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -243,10 +243,11 @@ spcd_os_mkdir() {
spcd_os_printenv() {
if [ -n "${1}" ]; then
for spcd_os_printenv__name in "${@}"; do
spcd_os_printenv__text=""
eval "spcd_os_printenv__text=\"\${${spcd_os_printenv__name}}\""
echo "${spcd_os_printenv__name} = \"${spcd_os_printenv__text}\""
local name
local text
for name in "${@}"; do
eval "text=\"\${${name}}\""
echo "${name} = \"${text}\""
done
fi
}