Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


And detecting that would actually implement move semantics in the shell.

Isn’t there already a project to bring Rust to the shell?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: