about summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-28 23:05:15 +0200
committerhut <hut@lavabit.com>2011-09-28 23:05:15 +0200
commitea2dd9974b5b25a206048b2747e9184c3e875f8d (patch)
tree3ab90df72957c2f72993d1de12a5615ed224e130 /doc
parent4833bc2383e30ccd3fb500497e9d1af7d056f066 (diff)
downloadranger-ea2dd9974b5b25a206048b2747e9184c3e875f8d.tar.gz
sanitized bash wrapper scripts, reformulated BUGS section in manual
Diffstat (limited to 'doc')
-rw-r--r--doc/ranger.112
-rw-r--r--doc/ranger.pod13
2 files changed, 12 insertions, 13 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index 981aa115..2ad3d9c0 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -715,9 +715,9 @@ original one.
 \& function ranger\-cd {
 \&   tempfile=\*(Aq/tmp/chosendir\*(Aq
 \&   /usr/bin/ranger \-\-choosedir="$tempfile" "${@:\-$(pwd)}"
-\&   if [ \-f "$tempfile" \-a "$(cat "$tempfile")" != "$(pwd | tr \-d "\en")" ]; then
-\&     cd "$(cat "$tempfile")"
-\&     rm "$tempfile"
+\&   if [ \-f "$tempfile" \-a "$(cat \-\- "$tempfile")" != "$(echo \-n \`pwd\`)" ]; then
+\&     cd \-\- "$(cat "$tempfile")"
+\&     rm \-f \-\- "$tempfile"
 \&   fi
 \& }
 \&
@@ -746,7 +746,7 @@ copy, run:
 .Ve
 .SH "BUGS"
 .IX Header "BUGS"
-Please report bugs here: <http://savannah.nongnu.org/bugs/?group=ranger>
+Report bugs here: <http://savannah.nongnu.org/bugs/?group=ranger>
 .PP
-In many cases, ranger prints more diagnostics information when you run it with
-the \fB\-\-debug\fR option. Please include as much relevant information as possible.
+Please include as much relevant information as possible.  For the most
+diagnostic output, run ranger like this: \f(CW\*(C`PYTHONOPTIMIZE= ranger \-\-debug\*(C'\fR
diff --git a/doc/ranger.pod b/doc/ranger.pod
index b59f7a40..ddd8dada 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -785,9 +785,9 @@ original one.
  function ranger-cd {
    tempfile='/tmp/chosendir'
    /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
-   if [ -f "$tempfile" -a "$(cat "$tempfile")" != "$(pwd | tr -d "\n")" ]; then
-     cd "$(cat "$tempfile")"
-     rm "$tempfile"
+   if [ -f "$tempfile" -a "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
+     cd -- "$(cat "$tempfile")"
+     rm -f -- "$tempfile"
    fi
  }
 
@@ -826,8 +826,7 @@ copy, run:
 
 =head1 BUGS
 
-Please report bugs here: L<http://savannah.nongnu.org/bugs/?group=ranger>
-
-In many cases, ranger prints more diagnostics information when you run it with
-the B<--debug> option. Please include as much relevant information as possible.
+Report bugs here: L<http://savannah.nongnu.org/bugs/?group=ranger>
 
+Please include as much relevant information as possible.  For the most
+diagnostic output, run ranger like this: C<PYTHONOPTIMIZE= ranger --debug>