From: Mark Lodato <lodatom@gmail.com>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: git list <git@vger.kernel.org>
Subject: Re: [PATCH] completion: make compatible with zsh
Date: Sun, 15 Aug 2010 21:43:39 -0400 [thread overview]
Message-ID: <AANLkTinoPRPqxPrzNHF5J595r_Oedy=LSPZNYdMhB+OD@mail.gmail.com> (raw)
In-Reply-To: <20100814212507.GD2372@burratino>
[original email was sent only to me]
On Sat, Aug 14, 2010 at 5:25 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> Mark Lodato wrote:
>
>> ${var:2}
>> Zsh uses $var[3,-1] to trim the first two characters. There is no
>> way to write cross-shell code to accomplish this, so we must wrap
>> this in a check for zsh.
>
> Maybe
>
> ${var#??}
Good idea. I'll include this in the next version of the patch.
prev parent reply other threads:[~2010-08-16 1:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1280890654-18486-1-git-send-email-lodatom@gmail.com>
2010-08-14 3:17 ` [PATCH] completion: make compatible with zsh Mark Lodato
2010-08-14 3:23 ` Ævar Arnfjörð Bjarmason
2010-08-14 3:40 ` Mark Lodato
2010-08-14 3:52 ` Ævar Arnfjörð Bjarmason
[not found] ` <20100814212507.GD2372@burratino>
2010-08-16 1:43 ` Mark Lodato [this message]
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='AANLkTinoPRPqxPrzNHF5J595r_Oedy=LSPZNYdMhB+OD@mail.gmail.com' \
--to=lodatom@gmail.com \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
/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 NNTP newsgroup(s).