Follow-up Comment #1, bug #59000 (project grub): Actually, doing a test in grub-emu, I get:
grub> foo="-gentoo" ; regexp --set=1:bah '^(.*)$' "$foo" ; echo $bah error: unknown argument `-g'. (Of course the regex in this case is trivial for testing. The real one was something like '^([^[:digit:]]*)([[:digit:]]*)(.*)$' but that doesn't affect the command parsing.) Either regexp should always treat the last two arguments as pattern and string, and avoid parsing them as parameters, or introduce a couple of long options, say regexp ... --pattern="foo" --string="bah" as an alternative to positional parameters. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59000> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/