Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 518786

Summary: >=app-editors/nano-2.3.3 on Gentoo/FreeBSD - Error in /usr/share/nano/nanorc.nanorc on line 10: Bad regex
Product: Gentoo/Alt Reporter: Yuta SATOH <nigoro.dev>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: vapier
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
URL: https://lists.gnu.org/archive/html/nano-devel/2015-02/msg00008.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Yuta SATOH 2014-08-02 00:35:51 UTC
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
Comment 1 Alex Xu (Hello71) 2014-08-02 00:48:12 UTC
not sure whether to file this against g/alt or nano maintainers.
Comment 2 SpanKY gentoo-dev 2015-02-17 23:55:58 UTC
sent fix upstream.  the || in there is a typo and should just be a |.
Comment 3 SpanKY gentoo-dev 2015-03-23 07:14:24 UTC
nano-2.4.0 includes the fix