aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2022-02-16 13:20:18 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2022-02-16 13:20:18 -0500
commit2b4d2bf48d3d1771e25fec6c706434ca01f2d8cf (patch)
tree8720155d0ad19d4dc49ef20e4e38a716e5521256 /docs
parent9898b6dbdc4a46671b722f988fb51a9288f4c895 (diff)
downloadcleanpath-2b4d2bf48d3d1771e25fec6c706434ca01f2d8cf.tar.gz
Add undocumented features
Diffstat (limited to 'docs')
-rw-r--r--docs/man/cleanpath.112
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/man/cleanpath.1 b/docs/man/cleanpath.1
index 6b3aa84..f31126a 100644
--- a/docs/man/cleanpath.1
+++ b/docs/man/cleanpath.1
@@ -33,6 +33,14 @@ No other arguments are honored and no filtering will occur.
\f[B]--list\f[R]
Format output as a list
.TP
+\f[B]--all\f[R]
+Apply to all environment variables. This output mode is suitable for
+the \f[B]eval\f[R] command.
+.TP
+\f[B]--all-list\f[R]
+Apply to all environment variables. This output mode is suitable for
+the \f[B]source\f[R] command.
+.TP
\f[B]-e\f[R], \f[B]--exact\f[R]
Filter when pattern is an exact match (default)
.TP
@@ -109,6 +117,10 @@ PATH=\[lq]/usr/local/bin:/usr/bin:/bin\[rq]
PATH=\[lq]$(cleanpath -l /usr/local)\[rq]; export PATH
.PP
# /usr/local/bin has been filtered from PATH
+.PP
+eval $(cleanpath -A -l /usr/local)
+.PP
+# /usr/local has been removed from the runtime environment
.SH ERRORS
.PP
\f[B]cleanpath\f[R] will exit non-zero (>0) when an error occurs.