From: Torsten Bögershausen Date: Wed, 25 May 2016 05:11:58 GMT Subject: Re: [BUG] can not escape sharps in git config file 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: > 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 ?