-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
async_job -s
and perform safer zpty writes (breaking change)
This change borrows the idea from #45 to introduce newlines to `zpty -w` as well. Consequently, when we want to properly escape _all_ inputs to `async_job`, we can no longer accept scripts as the first argument, as-is. Furthermore, it was discovered that the current implementation is flawed in the sense that it's impossible to execute a single command where the name or path has spaces in it (how did we not notice this before?). For this reason, `async_job` received the `-s` argument which allows running scripts, for example: async_job myworker -s 'print hello; print world' Whereas a command with spaces can now work without changes: async_job myworker /path/to/my\ executable
- Loading branch information
Showing
2 changed files
with
60 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters