]> git.cworth.org Git - notmuch-wiki/commitdiff
BASH_XTRACEFD=6 so that set -x output (if uncommented)
authorTomi Ollila <tomi.ollila@iki.fi>
Thu, 30 May 2013 05:46:20 +0000 (08:46 +0300)
committerTomi Ollila <tomi.ollila@iki.fi>
Thu, 30 May 2013 05:46:20 +0000 (08:46 +0300)
doesn't mix with stderr of the remote command

remoteusage/aboriginal.mdwn

index 8f4aa724d59933290cf089699c40f012bda4d09c..70980d94ba96f520e122f7fd1e94f36c22297547 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