From: Tomi Ollila Date: Thu, 30 May 2013 05:46:20 +0000 (+0300) Subject: BASH_XTRACEFD=6 so that set -x output (if uncommented) X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=24ea318ed86f5e33653aa43e4d1abb4ae47490bc BASH_XTRACEFD=6 so that set -x output (if uncommented) doesn't mix with stderr of the remote command --- diff --git a/remoteusage/aboriginal.mdwn b/remoteusage/aboriginal.mdwn index 8f4aa72..70980d9 100644 --- a/remoteusage/aboriginal.mdwn +++ b/remoteusage/aboriginal.mdwn @@ -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