From: Jack Peirce <JPeirce@sourcecode.com>
To: "notmuch@notmuchmail.org" <notmuch@notmuchmail.org>,
"zack@upsilon.cc" <zack@upsilon.cc>
Subject: notmuch-mutt BSD compatibility
Date: Fri, 1 May 2015 05:24:39 +0000 [thread overview]
Message-ID: <20150501052438.GA19579@ganesh.Home> (raw)
[-- Attachment #1: Type: text/plain, Size: 619 bytes --]
Some of the flags used in the notmuch-mutt script included in the
contrib directory are not supported by the OpenBSD implementation of
ln and xargs.
Please consider this patch which rearranges the arguments to use flags
compatible with both Linux and BSD implementations of ln/xargs.
Do note that I do not have the ability to test this under Linux right
now, but I am relatively confident everything should still work fine
as long as the man pages are correct.
xargs: use -r flag instead of --no-run-if-empty
ln: use -I flag/3rd form of ln command instead of -t flag/4th form
Thanks,
Jack
[-- Attachment #2: notmuch-mutt-bsd-compat.patch --]
[-- Type: text/plain, Size: 532 bytes --]
diff -uNr old/contrib/notmuch-mutt/notmuch-mutt new/contrib/notmuch-mutt/notmuch-mutt
--- old/contrib/notmuch-mutt/notmuch-mutt Thu Apr 30 23:08:50 2015
+++ new/contrib/notmuch-mutt/notmuch-mutt Thu Apr 30 23:10:21 2015
@@ -50,7 +50,7 @@
empty_maildir($maildir);
system("notmuch search --output=files $dup_option $query"
. " | sed -e 's: :\\\\ :g'"
- . " | xargs --no-run-if-empty ln -s -t $maildir/cur/");
+ . " | xargs -r -I searchoutput ln -s searchoutput $maildir/cur/");
}
sub prompt($$) {
next reply other threads:[~2015-05-01 5:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-01 5:24 Jack Peirce [this message]
2015-05-01 5:57 ` notmuch-mutt BSD compatibility David Bremner
2015-05-01 8:36 ` Stefano Zacchiroli
2015-05-02 8:37 ` Tomi Ollila
2015-05-04 8:48 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150501052438.GA19579@ganesh.Home \
--to=jpeirce@sourcecode.com \
--cc=notmuch@notmuchmail.org \
--cc=zack@upsilon.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).