From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: Twitter Daily ZSH Tip
Date: Mon, 28 Oct 2013 17:55:05 +0000 [thread overview]
Message-ID: <20131028175505.584149cc@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <877gcxe1to.fsf@ixian.com>
On Mon, 28 Oct 2013 10:34:59 -0700
Eric De Mund <ead@ixian.com> wrote:
> > vi *(.om[$1]) # vim newest file
>
> Problem here:
>
> % vi *(.om[$1])
> zsh: bad math expression: operand expected at `'
I think you want
vi *(.om[1])
or if you wanted to be really different
vi *(.Om[-1])
Otherwise you're substituting a positional parameter, which you don't
want. The error you got comes from it being empty, so there's no
number, which is what it's complaining about, slightly cryptically.
pws
next prev parent reply other threads:[~2013-10-28 17:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-28 17:34 Eric De Mund
2013-10-28 17:55 ` Peter Stephenson [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-10-19 10:09 zzapper
2013-10-19 14:53 ` Jérémie Roquet
2013-10-19 16:42 ` René Wilhelm
2013-10-19 18:00 ` Nick Cross
2013-10-19 19:11 ` Mark van Dijk
2013-10-20 17:36 ` Valodim Skywalker
2013-10-20 18:06 ` zzapper
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=20131028175505.584149cc@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-users@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).