zsh-workers
 help / color / mirror / code / Atom feed
From: Dima Kogan <zsh@dima.secretsauce.net>
To: zsh-workers@zsh.org
Subject: Possible bug in zargs
Date: Sat, 27 Oct 2012 15:34:00 -0700	[thread overview]
Message-ID: <20121027153400.77571174@shorty.local> (raw)

I can't seem to get the -n option in zargs to work right. This looks like a bug
to me, but maybe I'm not using it correctly:

dima@shorty:/tmp$ ls -l
total 12
-rw-r--r-- 1 dima dima 1 Oct 27 15:29 1
-rw-r--r-- 1 dima dima 5 Oct 27 15:29 2
-rw-r--r-- 1 dima dima 5 Oct 27 15:29 3


dima@shorty:/tmp$ zargs -- * -- ls -l 
-rw-r--r-- 1 dima dima 1 Oct 27 15:29 1
-rw-r--r-- 1 dima dima 5 Oct 27 15:29 2
-rw-r--r-- 1 dima dima 5 Oct 27 15:29 3

dima@shorty:/tmp$ zargs -- * -- ls   
1  2  3

dima@shorty:/tmp$ zargs -n1 -- * -- ls 
1
2
3

dima@shorty:/tmp$ zargs -n1 -- * -- ls -l
zargs: argument list too long



The "argument list too long" doesn't make sense here.

Thanks


             reply	other threads:[~2012-10-27 22:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-27 22:34 Dima Kogan [this message]
2012-10-30  7:05 ` Dima Kogan
2012-10-30 16:09   ` Bart Schaefer
2012-10-30 17:53     ` Dima Kogan

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=20121027153400.77571174@shorty.local \
    --to=zsh@dima.secretsauce.net \
    --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).