Re: Git pathspecs difference in behavior between linux (wsl) and windows
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- May 13, 2021, 13:02 UTC
- Message-ID
- <68a4ebd3-3c80-8983-9a26-f205debc4b5b@kdbg.org>
- In-Reply-To
- <CAKToE5DEL1ZFwUbvcC-M3y-3mSVsVgMXDig4G=jcKbc-nJ_GnQ@mail.gmail.com>
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.
-- Hannes