[llvm] [NFC][bolt][test] Change '|&' to '2>&1 |' for lit internal shell support (PR #102402)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 11 12:54:43 PDT 2024


connieyzhu wrote:

> Hi. I'm not too deep in lit internal shell thematics, but it won't prevent on creating new tests with 2>&1 syntax. Is there any reason that 2>&1 is not supported by lit shell? Maybe it should be fixed there?

`2>&1` is supported by lit's internal shell, but `|&` is not. The majority of LLVM tests use `2>&1`, so it doesn't really make sense to extend support to `|&` when the two do the same thing.

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


More information about the llvm-commits mailing list