]> git.cworth.org Git - notmuch-wiki/blobdiff - remoteusage/aboriginal.mdwn
fix trablshuuting
[notmuch-wiki] / remoteusage / aboriginal.mdwn
index 8f4aa724d59933290cf089699c40f012bda4d09c..1649c8bb9ddf18cdc42418dab53edcf64288788f 100644 (file)
@@ -23,8 +23,8 @@ Write the following code to a file, for example `remote-notmuch.sh`.
        # http://notmuchmail.org/remoteusage/aboriginal/
 
        set -eu
-       # To trace execution, outcomment next line. Note that emacs input may ...
-       #exec 2>>remote-errors; echo -- >&2; set -x # ... change (no stderr).
+       # To trace execution, uncomment next line.
+       #BASH_XTRACEFD=6; exec 6>>remote-errors; echo -- >&6; set -x
 
        readonly SSH_CONTROL_SOCK='~'/.ssh/master-user@host:22
 
@@ -147,10 +147,8 @@ run
 from command line and observe output. If it looks as it should be next uncomment
 the line
 
-        #exec 2>>remote-errors; echo -- >&2; set -x # ... change (no stderr).
+       #BASH_XTRACEFD=6; exec 6>>remote-errors; echo -- >&6; set -x
 
-in `./remote-notmuch.sh` and attemt to use it from emacs again -- and then
+in `./remote-notmuch.sh` and attempt to use it from emacs again -- and then
 examine the contents of `remote-errors` in the working directory emacs was
-started. Emacs behaviour may alter slightly as all stderr goes to remote-errors
-now to take that into account when examining results (and if it fixes everything
-then start forwarding stderr to /dev/null...).
+started.