Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculations not working [betty 1.6] #121

Open
hotice opened this issue May 27, 2014 · 2 comments
Open

Calculations not working [betty 1.6] #121

hotice opened this issue May 27, 2014 · 2 comments

Comments

@hotice
Copy link

hotice commented May 27, 2014

I've upgraded to Betty 1.6 and the new calculations feature doesn't work:

$ betty what is 40 plus 2
Betty: Running bc <<< 40+2
sh: 1: Syntax error: redirection unexpected

However, if I type the command that Betty is supposed to run, it works:

bc <<< 40+2
42

I'm using Ubuntu 14.04 / bash 4.3 / ruby 1.9.3.4.

christophelec added a commit to christophelec/betty that referenced this issue May 29, 2014
@christophelec
Copy link
Contributor

I found the problem : Betty uses sh, not bash, and "<<<" is not supported by sh. It works fine after replacing with : echo 'expr' | bc

christophelec added a commit to christophelec/betty that referenced this issue May 29, 2014
@jonmarkprice
Copy link
Contributor

Should this issue still be open? It's working for me on 1.8. though it does not show what command it is running, just the answer.

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

No branches or pull requests

3 participants