-
Notifications
You must be signed in to change notification settings - Fork 221
Simplify the sed command used to generate plugin header files, closes #1592 (hopefully) #1608
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
Conversation
Needs testing on a broad range of OSes if possible.
FloEdelmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a better alternative to #1592 now.
Thanks @FloEdelmann, I think you mean #1593 though. I think we still want the |
|
Please note that #1593 also resolves the backslash character properly something which the original sed did not (see ASCII art in #1541) iirc. As far as whether or not to use a long line or multiple lines... My understanding is we're trying to keep the lint beast at bay without a blacklist, but @peternewman is correct that it does make debugging easier. |
Agreed @Keeper-of-the-Keys . Do you want to pull this fix into #1593, or would you rather I take the rest of #1593 and pull that into this PR? |
|
Whatever works :) |
Thanks, FYI aside from observation and compilation, I've been testing changes don't affect the output using this snippet: So far it works fine on Ubuntu 16.04/sed 4.2.2 and Raspbian Buster/sed 4.7. |
|
@peternewman Finally had time to check this, it does not as I suspected take care of the backslash character. As far as the count goes it was arrived at through trial and error, the first can be either 3 or 4 bachslashes and the second 7 or 8 but not 6. |
Great, thanks for testing @Keeper-of-the-Keys . I might get this into 0.10 as a bug fix, and then we can have yours, with the set -e and the backslash stuff in master for your extra slashes in your new docs. |
Of course I'm talking nonsense, this functionality isn't in 0.10 at all, buggy or otherwise! 🤦♂️ Can you update #1593 with the changes from here please @Keeper-of-the-Keys ? |
An alternative option to #1593 although without the required error checking too.