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

Re: [BUG] can not escape sharps in git config file

From
Torsten Bögershausen <tboegi@web.de>
Date
May 25, 2016, 05:11 UTC
Message-ID
<5745341E.4080305@web.de>
In-Reply-To
<574439B3.9090308@gmail.com>
On 05/24/2016 01:23 PM, Jean-Noël Avila wrote:
Show 14 quoted lines
> My mistake, sorry for the noise,
>
> JFTR:
>
>   * only double quotes can fully escape a string (it is safer to enclose
> the whole value in double quotes)
>   * backslashes have to be doubled because they are interpreted by git
>
> So
>
> [filter "kicad_sch"]
>      clean = "sed -E 's/#(PWR|FLG)[0-9]+/#\\1?/'"
>      smudge = cat
>

(I'm not a filter expert) What happens if you put the sed expression into a shell script, and configure the filter to call the script instead ?

Previous: Jean-Noël Avila
Message 4 of 4 in “[BUG] can not escape sharps in git config file”
  1. Jean-Noël AvilaMay 24, 2016
  2. Jean-Noël AvilaMay 24, 2016
  3. Jean-Noël AvilaMay 24, 2016
  4. Torsten BögershausenMay 25, 2016

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.