lsearch, switch: fix -regexp case with option-like pattern
If the pattern begins with -, the internal invocation of regexp will treat the pattern as an option. Fix this by adding -- to the internal invocation of regexp. Fixes #154 Reported-by:Barry Arthur <barry.arthur@gmail.com> Signed-off-by:
Steve Bennett <steveb@workware.net.au>
parent
659f0431
Please register or sign in to comment