git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] can not escape sharps in git config file
@ 2016-05-24 10:14 Jean-Noël Avila
  2016-05-24 10:25 ` Jean-Noël Avila
  2016-05-24 11:23 ` Jean-Noël Avila
  0 siblings, 2 replies; 4+ messages in thread
From: Jean-Noël Avila @ 2016-05-24 10:14 UTC (permalink / raw)
  To: git

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: 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-25  5:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24 10:14 [BUG] can not escape sharps in git config file Jean-Noël Avila
2016-05-24 10:25 ` Jean-Noël Avila
2016-05-24 11:23 ` Jean-Noël Avila
2016-05-25  5:11   ` Torsten Bögershausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).