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

doesn't quit with ^D, ^C cancels process instead of current line #13

Open
DanielFGray opened this issue Aug 17, 2016 · 2 comments
Open

Comments

@DanielFGray
Copy link

Currently ^D will send the current line if it's not-empty, but when used on an empty line it prints the prompt right after the current.

^C seems to always quit the with prompt rather than starting a new prompt line.

I'm not sure if this is desired/intended behavior, but in my experience most/all interactive shells seem to respond this way.

@mchav
Copy link
Owner

mchav commented Aug 17, 2016

The ^D behaviour is strange. It should quit.. In my experience ^C depends on the tool. in ghci and python it starts a new line and in sbt it quits as well. I'll look into the ^D issue.

@nil-two
Copy link

nil-two commented Aug 21, 2016

I faced the same problem too.
I think this problem has been caused by this last part.

while true ; do
  run_with
done

When ^D entered, process exit run_with normally.
But it enter run_with once again because run_with surrounded by while true; do ... done.

If it isn't necessary to surround, this problem will be solved by removing this surround.

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