[flang-commits] [flang] [flang] Fix execute_command_line cmdstat is not set when error occurs (PR #93023)

Daniel Chen via flang-commits flang-commits at lists.llvm.org
Thu May 23 11:03:14 PDT 2024


DanielCChen wrote:

Nit:
With the patch, the code in PR #92929 now issues 
```
> a.out
 No error!
cat: no: No such file or directory
 exitstat= 1
 cmdstat= 3
 Invalid command line
 ```
 
 Both `exitstat` and `cmdstat` are correct now, but the error message `Invalid command line` seems not quite accurate. 
 For instance, if I changed the command to a random `fakecommand`, it will give the same message.

https://github.com/llvm/llvm-project/pull/93023


More information about the flang-commits mailing list