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

Unintuitive error messages in REPL shell #10110

Closed
sbromberger opened this issue Feb 7, 2015 · 4 comments
Closed

Unintuitive error messages in REPL shell #10110

sbromberger opened this issue Feb 7, 2015 · 4 comments
Labels
REPL Julia's REPL (Read Eval Print Loop)

Comments

@sbromberger
Copy link
Contributor

shell> !
bash: syntax error near unexpected token `)'

shell> (
bash: syntax error near unexpected token `)'

I understand that these might not be valid shell commands but the syntax error is puzzling.

@jiahao
Copy link
Member

jiahao commented Feb 7, 2015

These errors are emitted by the shell, not Julia. However, it looks like the shell receives an extra level of parentheses: at the ordinary bash prompt the errors are

bash-3.2$ !
bash: syntax error near unexpected token `newline'
bash-3.2$ (
> 

The second simply continues waiting for the closing right parenthesis.

c.f.

bash-3.2$ ! )
bash: syntax error near unexpected token `)'
bash-3.2$ ( )
bash: syntax error near unexpected token `)'

@jiahao jiahao added the REPL Julia's REPL (Read Eval Print Loop) label Feb 7, 2015
@vtjnash
Copy link
Member

vtjnash commented Mar 25, 2016

duplicate of #10120

@vtjnash vtjnash closed this as completed Mar 25, 2016
@sbromberger
Copy link
Contributor Author

Technically, #10120 is a duplicate of this one.

@vtjnash
Copy link
Member

vtjnash commented Mar 25, 2016

i usually keep whichever issue has more discussion (or analysis). usually that's the older issue, but sometimes it's the newer issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

3 participants