X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=remoteusage%2F124.mdwn;h=fb016788541136edc19f0b799458b7ccd1562649;hb=6af7f7dbf56bba07b8e3dcd567f51230c230b8d4;hp=76551a06d54ee837ffc68a38721f78ad041fba5a;hpb=e4e3a15c0b540a0aa632896c0800978a35a1dbb9;p=notmuch-wiki diff --git a/remoteusage/124.mdwn b/remoteusage/124.mdwn index 76551a0..fb01678 100644 --- a/remoteusage/124.mdwn +++ b/remoteusage/124.mdwn @@ -21,7 +21,7 @@ Write the following code to a file, for example `remote-notmuch.sh`. #!/bin/bash set -eu - # To trace execution, uncomment next line. + # To trace execution, uncomment next line: #BASH_XTRACEFD=6; exec 6>>remote-errors; echo -- >&6; set -x : ${REMOTE_NOTMUCH_SSHCTRL_SOCK:=master-notmuch@remote:22} @@ -40,7 +40,7 @@ Write the following code to a file, for example `remote-notmuch.sh`. else ev=$? fi - # continuing here in case ssh exited with nonzero value. + # continuing here in case ssh exited with nonzero value case $* in 'config get user.primary_email') echo 'nobody@nowhere.invalid'; exit 0 ;; @@ -51,7 +51,7 @@ Write the following code to a file, for example `remote-notmuch.sh`. 'search'*'--output=tags'*) echo 'errors'; exit 0 ;; esac - # for unhandled command line print only to stderr... + # fallback exit handler; print only to stderr... exec >&2 if ssh $SSH_CONTROL_ARGS -O check 0.1 @@ -60,9 +60,7 @@ Write the following code to a file, for example `remote-notmuch.sh`. exit $ev fi - case $0 in */*) dn0=${0%/*} ;; *) dn0=. ;; esac - echo "See $dn0/nottoomuch-remote.rst for more information" - + echo " See`sed '1d;2d;s/.//;q' "$0"` for help" exit $ev #eof @@ -118,7 +116,7 @@ There are 3 options how to handle this with `./nottoomuch-remote.bash`: 3) `REMOTE_NOTMUCH_SSHCTRL_SOCK` can be used via environment; like: - REMOTE_NOTMUCH_SSHCTRL_SOCK=master-robin@example.org:22 ./nottoomuch-remote.bash help + REMOTE_NOTMUCH_SSHCTRL_SOCK=master-robin@example.org:22 ./nottoomuch-remote.bash help ## Configure Emacs on the client computer ##