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

Re: problem with backslash in directory name

From
JDJoachim Durchholz <jo@durchholz.org>
Date
Apr 7, 2017, 08:40 UTC
Message-ID
<0a51432b-b9c9-32c5-c064-5fc9aaddebc7@durchholz.org>
In-Reply-To
<20170407063057.yjbqavu4uiipslpc@sigill.intra.peff.net>
Am 07.04.2017 um 08:30 schrieb Jeff King:
> I also don't know how some of those loops would cope with
> a submodule name that needed quoting).
"git submodule add" worked fine with most of the following names:
     "sub"
     # potentially confusing the shell
     "sub with blanks",
     "sub with\nnewline",
     "sub with'single quote",
     "sub with\"double quote",
     "sub with\\backslash",
     "sub with\bbackspace",
     "sub with\thorizontal tab",
     # potentially confusing git's configuration format
     "sub with #",
     "sub with ="

(That's Python 3 literals in case somebody is wondering. I'm using Python to unit test a shell script, just so I can catch this sort of stuff...)

Previous: Joachim DurchholzNext: Brandon Williams
Message 4 of 11 in “problem with backslash in directory name”
  1. Joachim DurchholzApr 7, 2017
  2. Jeff KingApr 7, 2017
  3. Joachim DurchholzApr 7, 2017
  4. Joachim DurchholzApr 7, 2017
  5. Brandon WilliamsApr 7, 2017
  6. Stefan BellerApr 7, 2017
  7. submodule: prevent backslash expantion in submodule namesBrandon Williams, Apr 7, 2017
  8. Joachim DurchholzApr 7, 2017
  9. Jeff KingApr 8, 2017
  10. Joachim DurchholzApr 8, 2017
  11. Junio C HamanoApr 17, 2017

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.