Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read -n1 </dev/null succeeds #769

Closed
Crestwave opened this issue Jun 12, 2020 · 1 comment
Closed

read -n1 </dev/null succeeds #769

Crestwave opened this issue Jun 12, 2020 · 1 comment

Comments

@Crestwave
Copy link
Contributor

nosj uses this (well, technically -N) like a regular while read loop but character by character.

$ read -n1 </dev/null
$ echo $?
1
osh$ read -n1 </dev/null
osh$ echo $?
0
andychu pushed a commit that referenced this issue Jun 12, 2020
Addresses bug #769.

Also add a failing spec test for errexit bug, mentioned in #752.
@andychu
Copy link
Contributor

andychu commented Jun 12, 2020

Thanks, good catch!

@andychu andychu closed this as completed Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants