Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

syntax errors mess up node REPL history support #6921

Closed
sam-github opened this issue Jan 20, 2014 · 2 comments
Closed

syntax errors mess up node REPL history support #6921

sam-github opened this issue Jan 20, 2014 · 2 comments
Labels

Comments

@sam-github
Copy link

The repl seems to stop understanding the arrow keys for history navigation:

> try{require('/etc/passwd')}catch(e){console.log('e<', e, '>')}

/etc/passwd:1
unction (exports, require, module, __filename, __dirname) { root:x:0:0:root:/r
                                                                    ^
e< [SyntaxError: Unexpected token :] >
undefined
> ^[[A^[[A^[[A

The ^[[A stuff is my up-arrow key, which works usually. This is ubuntu 13.10, fwiw.

Also see #6920, which is exhibited here.

@rlidwka
Copy link

rlidwka commented Jan 21, 2014

It has nothing to do with REPL, and caused by a tty reset while printing the error.

#6920 is a real issue here

@trevnorris
Copy link

What @rlidwka said.

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