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

Re: Git pathspecs difference in behavior between linux (wsl) and windows

From
Junio C Hamano <gitster@pobox.com>
Date
May 13, 2021, 20:08 UTC
Message-ID
<xmqqeeeabdml.fsf@gitster.g>
In-Reply-To
<68a4ebd3-3c80-8983-9a26-f205debc4b5b@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
Show 9 quoted lines
> Am 13.05.21 um 11:31 schrieb Alexandre Remy:
>> I have an additional question, does double-quotes be safely used in
>> both windows (that's ok) and linux shell  for pathspecs (git status --
>> "src/test.js") in case of spaces in the path?
>
> They can be used in both POSIX shell and Windows CMD and, I would
> assume, also in the PowerShell. Note though, that there are subtle
> differences when other special characters occur between double-quotes,
> notably the backslash. Please use your favorite search engine to learn more.
And a dollar sign, in addition to the backslash?
Previous: Johannes SixtNext: Johannes Sixt
Message 6 of 8 in “Git pathspecs difference in behavior between linux (wsl) and windows”
  1. Alexandre RemyMay 13, 2021
  2. Johannes SixtMay 13, 2021
  3. Alexandre RemyMay 13, 2021
  4. Alexandre RemyMay 13, 2021
  5. Johannes SixtMay 13, 2021
  6. Junio C HamanoMay 13, 2021
  7. Johannes SixtMay 13, 2021
  8. Alexandre RemyMay 13, 2021

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.