0x80070057 when calling bash -c from java (64bit).
When opening a bash process using java's ProcessBuilder builder1 = new ProcessBuilder("bash.exe", "-c", "fastqc" ); I receive the error 0x80070057. This error doesn't happen in any other context.
+1 I also have such problem. Any thoughts about this issue?
+1 invoking from bash over OpenSSH:
bobby {~/code/ssh} ➩ ssh -i sshkey [email protected] "bash -c 'eval echo hi mom'" Error: 0x80070057
+1 also experiencing this when eval-ing with bash from OpenSSH-Win64. Does not happen if bash is used interactively (?????????????), or in any other context as @andradebruno suggested.
The OP doesn't have a repro, but using the ssh scenario above (with server OpenSSH_for_Windows_8.1p1 that ships with windows) it seems to take.

Call it addressed as of 20H1 aka 19041 (and probably further back).
This bug or feature request originally submitted has been addressed in whole or in part. Related or ongoing bug or feature gaps should be opened as a new issue submission if one does not already exist.
Thank you!