From: Eli Zaretskii <eliz@gnu.org>
To: ng0 <ng0@libertad.pw>
Cc: guile-user@gnu.org
Subject: Re: How to pass something on to xargs rm?
Date: Tue, 27 Dec 2016 15:04:14 +0200 [thread overview]
Message-ID: <83a8bhwmk1.fsf@gnu.org> (raw)
In-Reply-To: <871swta6hm.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> (message from ng0 on Tue, 27 Dec 2016 12:42:13 +0000)
> From: ng0 <ng0@libertad.pw>
> Date: Tue, 27 Dec 2016 12:42:13 +0000
> Cc: guile-user@gnu.org
>
> I think I was a bit too verbose with my question. I meant to say:
> the part behind the "|", which originates from a 1:1 conversion of
> the bash based part, is ignored for obvious reasons. But what
> would be a quick way (until I've learned enough on this topic
> myself) to perform the deletion?
> I know that the original, "notmuch search --output=files
> tag:deleted | xargs -L 1 rm" works in the bash script, but for
> the .scm script, everything above (fetching mail, tagging mail)
> works and this part is ignored:
> (system* "notmuch" "search" "--output=files" "tag:deleted" "|" "xargs" "-L" "1" "rm")
'system*' doesn't run the shell. You need either 'system' (which
does), or use 'open-pipe*', 'open-input-pipe', etc.
next prev parent reply other threads:[~2016-12-27 13:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-27 11:33 How to pass something on to xargs rm? ng0
2016-12-27 12:07 ` John Darrington
2016-12-27 12:42 ` ng0
2016-12-27 13:04 ` Eli Zaretskii [this message]
2017-05-29 9:36 ` Thien-Thi Nguyen
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://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83a8bhwmk1.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=guile-user@gnu.org \
--cc=ng0@libertad.pw \
/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.
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).