notmuch-mutt: fix xargs/ln usage for OpenBSD compatibility

- 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

Signed-off-by: Stefano Zacchiroli <zack@upsilon.cc>
This commit is contained in:
Jack Peirce 2015-05-01 10:32:05 +02:00 committed by David Bremner
parent 294bb6de20
commit 1ad02d06b5

View file

@ -50,7 +50,7 @@ sub search($$$) {
empty_maildir($maildir); empty_maildir($maildir);
system("notmuch search --output=files $dup_option $query" system("notmuch search --output=files $dup_option $query"
. " | sed -e 's: :\\\\ :g'" . " | 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($$) { sub prompt($$) {