printenv/cut
This commit is contained in:
parent
948e315f08
commit
568d34b627
1 changed files with 5 additions and 1 deletions
6
pidd.sh
6
pidd.sh
|
@ -42,7 +42,11 @@ pidd_main() {
|
|||
|
||||
pidd_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() {
|
||||
|
|
Loading…
Reference in a new issue