dbginfo.sh: sort list of environment variables for readability

The "detour" with NUL terminated records ensures that sorting
works as expected for environment variables with values containing
one or more lines and thus '\n' as regular record separator.

Reviewed-by: Joern Siglen <siglen@de.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Steffen Maier
2022-02-16 21:15:09 +01:00
committed by Jan Höppner
parent d311506dc4
commit 1bd64f5b0f
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ Release history for s390-tools (MIT version)
- chreipl-fcp-mpath: bundle a pre-cooked version of the manpage for
build environments without access to `pandoc`
- dbginfo.sh: Add multipath info to map paths to FC addressing and prio group
- dbginfo.sh: Sort list of environment variables for readability
Bug Fixes:

View File

@@ -427,7 +427,7 @@ CMDS="uname -a\
:systemctl --all --no-pager list-unit-files\
:systemd-delta\
:ulimit -a\
:env\
:env --null | sort --zero-terminated | tr '\000' '\n'\
:find /boot -print0 | sort -z | xargs -0 -n 10 ls -ld\
:find /var/crash -print0 | sort -z | xargs -0 -n 10 ls -ld\
:df -h\