diff options
author | Simon Tatham <anakin@pobox.com> | 2021-08-07 18:59:05 +0300 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2021-08-07 19:08:19 +0300 |
commit | 9983ff53d5a3d59d58030be0cd46a30eb5da5abc (patch) | |
tree | ec0066e630815492d5140238c27f9142967433a4 /doc | |
parent | 84175f4aeafab4e66ae9b0429adbe0de62ffd2b1 (diff) |
psusan manpage: add a PATH to the UML example.
Ian Jackson observes that if PATH is not set in the environment,
current versions of bash will pick a default one that has "." as the
last directory, which is generally considered a terrible idea:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991959
Work around this by specifying a more sensible default in our example
script, per Ian's suggestion in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991960
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man-psusan.but | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/man-psusan.but b/doc/man-psusan.but index fa986e88..0ecb5ca9 100644 --- a/doc/man-psusan.but +++ b/doc/man-psusan.but @@ -191,6 +191,9 @@ And the setup script \cw{uml-psusan.sh} might look like this: \c # Choose what shell you want to run inside psusan \e iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii \c export SHELL=/bin/bash +\c # Set up a default path +\e iiiiiiiiiiiiiiiiiiiiiii +\c export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin \c # And now run psusan over the serial port \e iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii \c exec /home/simon/src/putty/misc/psusan |