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

cannot go back to shell normally after quitting using Ctrl-C or Ctrl-D #2

Open
tddschn opened this issue Jun 1, 2019 · 0 comments
Open

Comments

@tddschn
Copy link

tddschn commented Jun 1, 2019

sys setup: macOS 10.14.5, python2.7
shell: zsh 5.7.1

running script can be stopped by sending KeyboardInterrupt with Ctrl-C, but won't go back to the shell before running the script normally.

$ sgp -c sh000001 # sgp is a zsh alias 
***** start *****
名称     股价
深证成指 8922.69
上证指数 2898.6961
上证指数 2898.6961
***** end *****

***** start *****
名称     股价
深证成指 8922.69
上证指数 2898.6961
上证指数 2898.6961
***** end *****

^CTraceback (most recent call last):
  File "/Users/tscapple/bin/stock-get-price", line 102, in <module>
    time.sleep(options.sleep_time)
KeyboardInterrupt

Ctrl-D won't help either. Have to kill this session.

@tddschn tddschn changed the title cannot quit normally using Ctrl-C cannot go back to shell normally after quitting using Ctrl-C Jun 1, 2019
@tddschn tddschn changed the title cannot go back to shell normally after quitting using Ctrl-C cannot go back to shell normally after quitting using Ctrl-C or Ctrl-D Jun 1, 2019
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

1 participant