-
Notifications
You must be signed in to change notification settings - Fork 447
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
show_submenu: fix sed expression #488
Conversation
The matching parentheses and | in sed expresssions need to be escaped or sed will consider like normal characters. Without this fix, make show_submenu was showing lines like this one: pro.menu.cpu.8MHzatmega328 ATmega328 (3.3V, 8 MHz) It now properly outputs lines like this: pro 8MHzatmega328 ATmega328 (3.3V, 8 MHz) This output is much less misleading to users especially newcomers.
i'm a bit rusty on this, how do you actually take that output and put it in a Makefile, would it be the only time i've ever used it is more simple cases e.g. a mega2560 without any custom cpu speed stuff:
which computes your PR certainly seems to make show_submenu match show_boards, but i wonder if we could document it better? it would be nice to have a header for the 3 columns, which i guess are BOARD_TAG, BOARD_SUB and the descriptive name (or 2 for show_boards)
|
That would be something like:
The rest of Arduino.mk is made with this in mind. Without the
I agree: it would be nice for users to have headers for those two commands, the current PR just makes it work. |
ok thanks, i've merged it now, we can work on headings later |
@sej7278 Thanks for taking care of this and the other PR's. |
👍 |
The matching parentheses and | in sed expresssions need to be escaped
or sed will consider like normal characters.
Without this fix, make show_submenu was showing lines like this one:
pro.menu.cpu.8MHzatmega328 ATmega328 (3.3V, 8 MHz)
It now properly outputs lines like this:
pro 8MHzatmega328 ATmega328 (3.3V, 8 MHz)
This output is much less misleading to users especially newcomers.