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

3 messages, 3 authors, 2021-05-13 · open the first message on its own page

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

From: Junio C Hamano <hidden>
Date: 2021-05-13 20:08:37

Johannes Sixt [off-list ref] writes:
Am 13.05.21 um 11:31 schrieb Alexandre Remy:
quoted
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?

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

From: Johannes Sixt <hidden>
Date: 2021-05-13 21:03:59

Am 13.05.21 um 22:08 schrieb Junio C Hamano:
Johannes Sixt [off-list ref] writes:
quoted
Am 13.05.21 um 11:31 schrieb Alexandre Remy:
quoted
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

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

From: Alexandre Remy <hidden>
Date: 2021-05-13 21:17:27

Yep, I know, no problem. The primary subject is closed. thank you.

Le jeu. 13 mai 2021 à 23:03, Johannes Sixt [off-list ref] a écrit :
Am 13.05.21 um 22:08 schrieb Junio C Hamano:
quoted
Johannes Sixt [off-list ref] writes:
quoted
Am 13.05.21 um 11:31 schrieb Alexandre Remy:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help