On Sat, Aug 24 2013, Bastien <bzg@altern.org> wrote: > Hi again, > > notmuch search $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02) > > works wonders from the command line, but not from within Emacs: > > M-x notmuch-search RET $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02) there is no shell expansion done to the string... ... however M-x notmuch-search RET date:2009-10-01..2009-10-02 should do it (provided you have at least notmuch 0.15 (or so)) Tomi > > [Sat Aug 24 12:39:15 2013] > A Xapian exception occurred performing query: Unknown range operation > Query string was: $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02) > command: notmuch search --format\=sexp --format-version\=1 --sort\=newest-first \$\(date\ \+\%s\ -d\ 2009-10-01\)..\$\(date\ \+\%s\ -d\ 2009-10-02\) > exit status: 1 > stderr: > A Xapian exception occurred performing query: Unknown range operation > Query string was: $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02) > > I see --format=sexp -- does that mean we need to protect those > kinds of requests somehow? > > Thanks for your help! > > -- > Bastien > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch