From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh Hackers' List <zsh-workers@zsh.org>
Subject: Re: PATCH: zmv with alternative commands
Date: Wed, 03 Jul 2013 17:06:22 +0100 [thread overview]
Message-ID: <20130703170622.7114a7fc@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <130703085719.ZM8647@torch.brasslantern.com>
On Wed, 03 Jul 2013 08:57:19 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Jul 3, 12:17pm, Peter Stephenson wrote:
> } Subject: PATCH: zmv with alternative commands
> }
> } I wanted to use zmv to "p4 integrate" (think alternatively of "git mv"
> } --- not the same but should indicate what I'm using zmv for) some files.
> } I encountered two problems: zmv doesn't split the words of the program
> } you supply with -p, and also "p4 integrate" doesn't understand a
> } following "--" to indicate the end of options for the subcommand. I've
> } introduced -P for the latter case.
>
> Perhaps -P could itself take an argument which is the end-of-options
> marker? E.g. some older commands don't understand "--" but do accept
> a single "-" all by itself.
That will already work since the end-of-option marker comes after the
program:
zmv -P "cp --" foo bar
pws
next prev parent reply other threads:[~2013-07-03 16:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-03 11:17 Peter Stephenson
2013-07-03 15:57 ` Bart Schaefer
2013-07-03 16:06 ` Peter Stephenson [this message]
2013-07-03 18:09 ` Bart Schaefer
2013-07-03 19:00 ` Peter Stephenson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130703170622.7114a7fc@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/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://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).