pacaur
pacaur copied to clipboard
Provider selection crashes upon pressing arrow keys.
When trying to install something which can have multiple providers, you get this:
Enter a number (default=0):
If you press any arrow key, this happens:
:: invalid number:
/usr/bin/pacaur: line 442: [[: syntax error: operand expected (error token is ")
/usr/bin/pacaur: line 442: [[: syntax error: operand expected (error token is ")
/usr/bin/pacaur: line 457: syntax error: operand expected (error token is ")
Thanks for the report, I can indeed reproduce.
Try replacing all instances of read -n
with read -r -n
.
https://github.com/koalaman/shellcheck/wiki/SC2162
Thanks, done in c47a95a6b31ed94b6e71d3662ea7829718484ce4. This does however not fix the mentioned issue.
Relevant documentation.