Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Calling the CLI from the outside with an empty command string (-c '') crashes PowerShell #10684
From within PowerShell, running
By contrast, when
Steps to reproduce
Run from either
pwsh -c ""
The following should print to stderr and a nonzero exit code should be reported, analogous to what happens when calling from PowerShell.
@iSazonov I submitted the issue first, reported detailed system information(only linux), but was closed as Duplicate.
I don't know what the hidden rules are for you. Below, please start your sophistry.
I guess you will say that 【pwsh -c ”$pid”】 i was reported, and 【pwsh -c ”” him reported 】 is essentially different.
Your original issue had a misconception about how POSIX-like shells such as Bash evaluate
#10410 (comment) explains the misconception in detail and offers solutions.
In short: When you call from Bash,
It is only