4 ms·
The shell can't detect that unless the file is also used as input via `<`. So it couldn't do that in HellsMaddy's example, since the filename is given as an arg
by Arnavion 5y ago
The shell can't detect that unless the file is also used as input via `<`. So it couldn't do that in HellsMaddy's example, since the filename is given as an arg to awk instead of being connected to its stdin.
- dejj 5y agoAnd detecting that would actually implement move semantics in the shell. Isn’t there already a project to bring Rust to the shell?