fish-shell / fish-shell/fish-shell
implement a timeout option for `read` ala bash's `read -t timeout`
Open
enhancement
- Dominant language
- Rust
- Stars
- 34.2k
- Forks
- 2.4k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 13
Description
It would be [useful](http://thread.gmane.org/gmane.comp.shells.fish.user/4022) to have a mode for `read` to fail immediately when there is nothing to read from stdin.
As the simpler version of `read -n 0 -t 0` (from Bash) there could be just a switch (-n? from no wait) to just return !=0 when there was nothing awaiting on stdin (instead of showing a prompt).
Contributor guide
Assessment
This issue has not been assessed yet.