2 ms·
Using double-dash solves almost all such issues. One notable exception: a file named dash will still be interpreted as stdin. echo a > - echo b | cat -- -
by im3w1l 5y ago
Using double-dash solves almost all such issues. One notable exception: a file named dash will still be interpreted as stdin.
echo a > -
echo b | cat -- -
Output: b