From: "Torsten Bögershausen" <tboegi@web.de>
To: "Jean-Noël Avila" <avila.jn@gmail.com>, git <git@vger.kernel.org>
Subject: Re: [BUG] can not escape sharps in git config file
Date: Wed, 25 May 2016 07:11:58 +0200 [thread overview]
Message-ID: <5745341E.4080305@web.de> (raw)
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 ?
prev parent reply other threads:[~2016-05-25 5:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5745341E.4080305@web.de \
--to=tboegi@web.de \
--cc=avila.jn@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).