git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Escape character for .gitconfig

From
EBErik Blake <erik@icefield.yk.ca>
Date
Dec 17, 2011, 10:10 UTC
Message-ID
<4EEC6A9D.1060005@icefield.yk.ca>

I have an editor path that includes "(" and ")". No matter how I try to escape this character, I get either variations on:

C:/Program Files (x86)/Notepad++/notepad++.exe: -c: line 0: syntax error near unexpected token `(' C:/Program Files (x86)/Notepad++/notepad++.exe: -c: line 0: `C:/Program Files (x86)/Notepad++/notepad++.exe \$@\' error: There was a problem with the editor 'C:/Program Files (x86)/Notepad++/notepad++.exe'. Please supply the message using either -m or -F option.

or:
fatal: bad config file line 5 in C:\Users\xxx/.gitconfig

As you can see, I'm running git on a Win7 64 machine. Is there any way to escape the brackets? Or do I need to reinstall notepad++ on a different path?

Next: Jeff King
Message 1 of 9 in “Escape character for .gitconfig”
  1. Erik BlakeDec 17, 2011
  2. Jeff KingDec 17, 2011
  3. Erik BlakeDec 18, 2011
  4. Jeff KingDec 18, 2011
  5. Dirk SüsserottDec 19, 2011
  6. Erik BlakeDec 20, 2011
  7. Dirk SüsserottDec 20, 2011
  8. Peter KreftingDec 21, 2011
  9. demerphqDec 21, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.