12
1
On Windows 10, can git-bash and cygwin shell do the same things?
What can one do but the other can't?
For example,
- As shells, can they both work the same as bash?
What programs and commands can run in one but not in the other?
For example, in git-bash, I can't run some Windows command:
$ reg add "HKCU\Software\Microsoft\VisualStudio\14.0_Config\MSBuild" /v EnableOutOfProcBuild /t REG_DWORD /d 0 /f ERROR: Invalid syntax. Type "REG ADD /?" for usage.
But in Cygwin, it runs well
$ reg add "HKCU\Software\Microsoft\VisualStudio\14.0_Config\MSBuild" /v EnableOutOfProcBuild /t REG_DWORD /d 0 /f The operation completed successfully.
originally I thought that git-bash and cygwin can both run programs in Windows. So Why doesn't git-bash work, while cygwin can?
Thanks.
1
You can use cygpath to convert between windows and unix path formats.
– DavidPostill – 2017-03-24T14:40:19.670Thanks. The pathname in my commands are used as keys in the registry table, so can "" in them be replaced with "/"? – Tim – 2017-03-24T19:05:16.093
Maybe, but see the suggestion in the (newly edited) answer. – AlwaysLearning – 2017-03-25T17:03:23.130