You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include a human-readable description of what the pull request is trying to accomplish.
Steps for the reviewer(s) on how they can manually QA the changes.
Have a fixes #XX reference to the issue that this pull request fixes.
Code inspired by this comment, this PR fixes the sed command on BSD/Busybox, etc. platforms in which GNU sed is not used.
Unlike what some comments in the linked issue suggests, the approach of exporting the function so todotxt add-ons can automatically use the fix was not done. This is because that would be a breaking change and there is no way we can guarantee that the assumptions of this sed() function hold true for all plugin code.
On Ubuntu (and I think Cygwin as well), there's no gsed command, only (GNU) sed. The sed() wrapper would use the in-place emulation there, which I think would be a bad side effect. Auto-detecting GNU sed is difficult and has a performance impact as well - I don't want to go down that route. In #447 (created because you don't allow pushes to your fork), I've tried to address this via new config variables. What do you think about that?
I think it's better compared to the original code, but like you mention, it still uses the sed() wrapper by default (TODOTXT_SED_COMMAND is unset by default), which is probably suboptimal. But I have an idea to address that!- I'll comment on the new PR
created because you don't allow pushes to your fork
I would if I could, but unfortunately, GitHub does not allow pushes to my fork because the repository is owned by an organization instead of a user 😭
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before submitting a pull request, please make sure the following is done:
master.fixes #XXreference to the issue that this pull request fixes.Code inspired by this comment, this PR fixes the sed command on BSD/Busybox, etc. platforms in which GNU sed is not used.
Unlike what some comments in the linked issue suggests, the approach of exporting the function so todotxt add-ons can automatically use the fix was not done. This is because that would be a breaking change and there is no way we can guarantee that the assumptions of this
sed()function hold true for all plugin code.How to test:
make testCloses #168