On Tue, 17 Jan 2012 18:49:36 +0400, Dmitry Kurochkin 
<dmitry.kuroch...@gmail.com> wrote:
> > +           # We cannot call 'test_emacs' in a subshell, because
> > +           # the setting of EMACS_SERVER would not persist
> > +           # throughout a sequence of tests, so we use a
> > +           # temporary file.
> > +           tmp="$TMPDIR"; if [ -z "$tmp" ]; then tmp=/tmp; fi
> > +           output="$tmp/test_emacs_output.$$"
> > +           test_emacs "$1" > "${output}"
> > +           result=$(cat "${output}")
> > +           rm -f "${output}"
> 
> I wonder if there is any bash trick which can help here?

I'm not aware of one, but I'm not a bash expert.

> Another option is to start emacs server before using test_emacs in
> subshell.  See emacs-subject-to-filename for an example.  I think this
> is a better option than using a temporary file.

I think that's a very poor option. Forcing knowledge the breakage into
all of the users may make applying any future fix more difficult.

Attachment: pgpZsJ84ifN6A.pgp
Description: PGP signature

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to