[BUG] can not escape sharps in git config file
- From
Jean-Noël Avila <avila.jn@gmail.com>
- Date
- May 24, 2016, 10:14 UTC
- Message-ID
- <57442992.6030306@gmail.com>
Hi everyone,
I stumbled on this:
config file:
[filter "kicad_sch"]
clean = sed -E 's/#(PWR|FLG)[0-9]+/#\1?/'
smudge = catThen 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: external filter sed -E 's/ failed
It seems that the # is used for end-of-line comments and can not be escaped, even in quotes or backslash.
JN