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

Replace external shell call with read-upto #5

Merged
merged 2 commits into from
Jan 8, 2020

Conversation

zzamboni
Copy link
Contributor

@zzamboni zzamboni commented Jan 3, 2020

(resubmission of #4 without the incorrect statement that read-upto is included in Elvish 0.13)

Elvish now has a read-upto function, which eliminates the need to call an external Bourne shell command to read the gitstatusd response. This is not included in Elvish 0.13 but is available in master.

Elvish now has a read-upto function, which eliminates the need to call
an external Bourne shell command to read the gitstatusd response. This
is not included in Elvish 0.13 but is available in master.
@href
Copy link
Owner

href commented Jan 4, 2020

Thanks! I‘m on vacation and won‘t merge this for at least a week more, as I don‘t have a chance to test this.

Just one thought: Can we check for the existence of the new function and fall back on the old behavior?

@href href merged commit 1e7224b into href:master Jan 8, 2020
@zzamboni
Copy link
Contributor Author

zzamboni commented Jan 8, 2020

@href sorry for the delay - I was also on vacation :)

I have submitted #7, which uses exception handling to fall back to the external shell call if read-upto does not exist.

@zzamboni zzamboni deleted the use-read-upto branch January 14, 2020 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants