From: Mark Lodato Date: Mon, 16 Aug 2010 01:43:39 GMT Subject: Re: [PATCH] completion: make compatible with zsh Message-ID: In-Reply-To: <20100814212507.GD2372@burratino> [original email was sent only to me] On Sat, Aug 14, 2010 at 5:25 PM, Jonathan Nieder 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.