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

2016-05-24 Thread Torsten Bögershausen
On 05/24/2016 01:23 PM, Jean-Noël Avila wrote: 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"]

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

2016-05-24 Thread Jean-Noël Avila
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?/'"

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

2016-05-24 Thread Jean-Noël Avila
Forgot to add: ± git --version git version 2.8.3 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[BUG] can not escape sharps in git config file

2016-05-24 Thread Jean-Noël Avila
Hi everyone, I stumbled on this: config file: [filter "kicad_sch"] clean = sed -E 's/#(PWR|FLG)[0-9]+/#\1?/' smudge = cat Then in the shell: ± git add -u sed -E 's/: 1: sed -E 's/: Syntax error: Unterminated quoted string error: external filter sed -E 's/ failed 2 error: