ywangd / stash

StaSh - Shell for Pythonista
MIT License
1.92k stars 227 forks source link

Only first line in .stashrc or first command in a single-line multiple commands separated by ; is executed. #494

Open tokyohandsome opened 1 year ago

tokyohandsome commented 1 year ago

Hi thank you for working on Stash.

I noticed a couple of issues which might be related: Only the first line of .stashrc is loaded when Stash is launched or source command is manually run to set aliases. Also, when I attempt to execute multiple commands in a single line, only the first command is executed.

Example (second command cat didn't run.): [~/Documents]$ ls > ls.txt ; cat ls.txt stash: ^C KeyboardInterrupt: Exit: 0

[~/Documents]$ cat ls.txt Examples launch_stash.py ls.txt site-packages stash_extensions Welcome.md stash: ^C KeyboardInterrupt: Exit: 0

Pythonista 3.4 and Stash dev version released yesterday installed: [~/Documents]$ version StaSh v0.8.0 Python 3.10.4 (CPython) UI stash.system.shui.pythonista_ui root: ~/Documents/site-packages/stash core.py: 2023-05-05 13:15:38 SELFUPDATE_TARGET: master Pythonista 3.4 (340012) iOS 16.3.1 (64-bit iPhone10,2) Platform iOS-16.3.1-iPhone10,2-64bit BIN_PATH: ~/Documents/bin ~/Documents/stash_extensions/bin ~/Documents/site-packages/stash/bin

tokyohandsome commented 1 year ago

Found this post at the Pythonista official user forum: https://forum.omz-software.com/topic/8079/pythonista-3-4-error-keyboardinterrupt It seems to be a bug of Pythonista (3.4).