Re: [PATCH] completion: make compatible with zsh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[original email was sent only to me]

On Sat, Aug 14, 2010 at 5:25 PM, Jonathan Nieder <jrnieder@xxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]