Re: [PATCH] completion: make compatible with zsh
- From
Mark Lodato <lodatom@gmail.com>
- Date
- Aug 16, 2010, 01:43 UTC
- Message-ID
- <AANLkTinoPRPqxPrzNHF5J595r_Oedy=LSPZNYdMhB+OD@mail.gmail.com>
- 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:
Show 10 quoted lines
> 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.