printenv/cut

This commit is contained in:
Marc Beninca 2024-06-24 17:55:54 +02:00
parent 948e315f08
commit 568d34b627
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -42,7 +42,11 @@ pidd_main() {
pidd_list_environment_variables() { pidd_list_environment_variables() {
pidd_step "List environment variables" pidd_step "List environment variables"
env | sort for pidd_lev__name in $(printenv | cut -d = -f 1 | sort); do
pidd_lev__text=""
eval "pidd_lev__text=\"\${${pidd_lev__name}}\""
echo "${pidd_lev__name}=${pidd_lev__text}"
done
} }
pidd_list_working_directory() { pidd_list_working_directory() {