You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you expect to occur after running these commands?
I expected to see in the Windows Sysmon Event 1 the entire command string.
Example: CommanLine: "C:\Program Files\Git\usr\bin\cp.exe /c/users/name/desktop/test.txt /c/users/other/desktop/test.txt"
What actually happened instead?
The log captured is only that cp.exe was used.
Example: CommanLine: "C:\Program Files\Git\usr\bin\cp.exe"
If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
As far as we're concerned cp works as expected. It copies things. We also seem to consume the upstream coreutils package as-is, so maybe upstream (or maybe Cygwin or Sysmon) is a more appropriate place for this discussion.
Feel free to work on getting MSYS2 parameter handling compatible with Sysmon, but it's pretty low priority for us.
I did some digging (since a nice colleague of me prodded me gently), and it turns out that this is actually intended behavior (see e.g. this thread). The suggested remedy was to set the CYGWIN variable to wincmdln (in Git for Windows' and MSYS2's context, that would be the MSYS variable).
Sadly, there is a bug in MSYS2 which prevents this from working, and I opened a PR to fix it: msys2/msys2-runtime#10
Setup
defaults?
to the issue you're seeing?
N/A
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
I expected to see in the Windows Sysmon Event 1 the entire command string.
Example: CommanLine: "C:\Program Files\Git\usr\bin\cp.exe /c/users/name/desktop/test.txt /c/users/other/desktop/test.txt"
The log captured is only that cp.exe was used.
Example: CommanLine: "C:\Program Files\Git\usr\bin\cp.exe"
URL to that repository to help us with testing?
https://git-scm.com/download/win
The text was updated successfully, but these errors were encountered: