At run time, Error in /usr/share/nano/nanorc.nanorc on line 10: Bad regex is always displayed on Gentoo/FreeBSD. Reproducible: Always Steps to Reproduce: 1. emerge '>=app-editors/nano-2.3.3' 2. nano -w foo 3. Actual Results: # nano -w foo Error in /usr/share/nano/nanorc.nanorc on line 10: Bad regex "^[[:space:]]*set[[:space:]]+(functioncolor|keycolor||statuscolor|titlecolor)[[:space:]]+(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?[[:>:]]": empty (sub)expression Press Enter to continue starting nano. [ebuild R ] app-editors/nano-2.3.6 USE="magic ncurses nls spell unicode -debug -justify -minimal -slang" 0 kB
not sure whether to file this against g/alt or nano maintainers.
sent fix upstream. the || in there is a typo and should just be a |.
nano-2.4.0 includes the fix