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
ARAlexandre Remy <alexandre.remy.contact@gmail.com>
Date
May 13, 2021, 21:17 UTC
Message-ID
<CAKToE5B7xsNiXV2U4gRJeqEke9Y3gPpFfBwAtBPrvBx4jAx3VQ@mail.gmail.com>
In-Reply-To
<dbf1e10c-c43c-3293-61b7-eff5fceecb84@kdbg.org>
Yep, I know, no problem. The primary subject is closed. thank you.
Le jeu. 13 mai 2021 à 23:03, Johannes Sixt <j6t@kdbg.org> a écrit :
Show 21 quoted lines
>
> Am 13.05.21 um 22:08 schrieb Junio C Hamano:
> > Johannes Sixt <j6t@kdbg.org> writes:
> >
> >> 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?
>
> Granted, there's not a subtle, but a big difference how the dollar sign
> is treated ;) but I don't want to write a tutorial here. Hence, my hint
> towards a search engine.
>
> -- Hannes
Previous: Johannes Sixt
Message 8 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.