aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2018-10-26 19:55:06 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2018-10-26 20:25:53 +0200
commitd1081b23e17d074d19877471ebef0e630f67629a (patch)
tree4b2e9ae5379b574c6e3a24f301e27ff052cd535c
parent9b7956cfd84659aabe67aee8fbad74b58fba35c0 (diff)
downloadman-pages-d1081b23e17d074d19877471ebef0e630f67629a.tar.gz
proc.5: Use 'tr '\000' '\n' to display contents of /proc/PID/environ
This is in effect a revert of commit 1391278030f64c7dd96f4535c1056321f690e094 Reported-by: Alexander E. Patrakov <patrakov@gmail.com> Reported-by: Jakub Wilk <jwilk@jwilk.net> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man5/proc.52
1 files changed, 1 insertions, 1 deletions
diff --git a/man5/proc.5 b/man5/proc.5
index ddec0e6a2d..9a928b4e08 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -519,7 +519,7 @@ Thus, to print out the environment of process 1, you would do:
.IP
.in +4n
.EX
-.RB "$" " strings /proc/1/environ"
+.RB "$" " cat /proc/1/environ | tr \(aq\e000\(aq \(aq\en\(aq"
.EE
.in
.IP