Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] completion: make compatible with zsh

From: Mark Lodato <hidden>
Date: 2016-06-15 22:49:19

[original email was sent only to me]

On Sat, Aug 14, 2010 at 5:25 PM, Jonathan Nieder [off-list ref] wrote:
Mark Lodato wrote:
quoted
${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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help