Issue 240058
Summary [lit] Builtin cat does not read stdin for a "-" operand
Labels new issue
Assignees
Reporter thejesh23
    lit's builtin `cat` treats a `-` operand as a file name instead of standard input, unlike POSIX `cat`. A RUN line such as

```
# RUN: echo foo | cat - %t
```

fails with `[Errno 2] No such file or directory: '-'`.

_Found with help from Claude Code. I reproduced and reviewed it myself._

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to