wsl -h显示以下内容: --exec, -e <CommandLine> Execute the specified command without using the default Linux“不使用默认的Linux shell”是什么意思(即,如果不使用默认的shell,它还将使用什么?)。此外,作为示例,我现在有三种可能的方法来从我的PowerShell提示符运行Linux ls (即,这将不是ls的Get-ChildItem别名,而是通过WSL的Linux命令
我有一个运行linux命令的C++代码,我想模拟分段错误,即SIGSEGV,同时通过C++代码执行C++命令。所以我的代码是这样的 string cmd = "some linux command that should throw seg fault";
execute_linux_comand(cmd); // Want to simulate segfault com