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

If running with --cygstart, --wait is not respected #1

Open
Phidica opened this issue Aug 18, 2018 · 0 comments
Open

If running with --cygstart, --wait is not respected #1

Phidica opened this issue Aug 18, 2018 · 0 comments

Comments

@Phidica
Copy link

Phidica commented Aug 18, 2018

I realised fairly quickly when running this script that unless the --cygstart option was given, if Sublime Text was not already open then the command would block the terminal until ST was closed. I decided to just alias my subl command to always include --cygstart. However I later discovered that if I run subl --wait test.txt (equivalent to subl --cygstart --wait test.txt) then counter to expectation the command did not block the terminal until the file was closed.

I believe this is because the cygstart program is inherently non-blocking, and will not block the terminal even if the ST executable is given the --wait option and is behaving in line with that.

Fortunately, cygstart does support its own --wait option. From my own testing, this issue is fixed if cygstart is given the --wait option when ST is also given the --wait option.

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