git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Ævar Arnfjörð Bjarmason
Message 5 of 5 in “Re: [PATCH] completion: make compatible with zsh”
  1. Mark LodatoAug 14, 2010
  2. Ævar Arnfjörð BjarmasonAug 14, 2010
  3. completion: make compatible with zshMark Lodato, Aug 14, 2010
  4. Ævar Arnfjörð BjarmasonAug 14, 2010
  5. Mark LodatoAug 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.