Skip to content
This repository has been archived by the owner on May 31, 2018. It is now read-only.

Provider selection crashes upon pressing arrow keys. #457

Open
kamnxt opened this issue Mar 28, 2016 · 4 comments
Open

Provider selection crashes upon pressing arrow keys. #457

kamnxt opened this issue Mar 28, 2016 · 4 comments

Comments

@kamnxt
Copy link

kamnxt commented Mar 28, 2016

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 ")
@rmarquis
Copy link
Owner

Thanks for the report, I can indeed reproduce.

@rmarquis rmarquis added the bug label Mar 29, 2016
@rmarquis rmarquis added this to the 4.6.x - new features milestone Mar 29, 2016
@AladW
Copy link
Contributor

AladW commented Mar 30, 2016

Try replacing all instances of read -n with read -r -n.

https://github.com/koalaman/shellcheck/wiki/SC2162

@rmarquis
Copy link
Owner

Thanks, done in c47a95a. This does however not fix the mentioned issue.

@rmarquis
Copy link
Owner

rmarquis commented Apr 2, 2016

Relevant documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants