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 only reads a single line even with a different delimiter #694

Closed
Crestwave opened this issue Apr 7, 2020 · 1 comment
Closed

read only reads a single line even with a different delimiter #694

Crestwave opened this issue Apr 7, 2020 · 1 comment

Comments

@Crestwave
Copy link
Contributor

Used by Neofetch.

osh$ read -rd '' var <<EOF
> foo
> bar
> EOF
osh$ echo "$var"
foo
$ read -rd '' var <<EOF
> foo
> bar
> EOF
$ echo "$var"
foo
bar
@Crestwave Crestwave mentioned this issue Apr 7, 2020
andychu pushed a commit that referenced this issue Apr 7, 2020
Also fix the exit code when the delimiter isn't found.

Fixes issue #694.

Also refactor Oil's 'getline' builtin.
@andychu
Copy link
Contributor

andychu commented Apr 7, 2020

Fixed. Good catch, thanks for testing!

@andychu andychu closed this as completed Apr 19, 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