You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 mysubl
command to always include--cygstart
. However I later discovered that if I runsubl --wait test.txt
(equivalent tosubl --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.The text was updated successfully, but these errors were encountered: