Created
January 8, 2021 07:14
-
-
Save delta1/8ffc61200b650ab471e83f008645b01c to your computer and use it in GitHub Desktop.
macos `open` command not passing arguments via `--args`
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
#!/bin/zsh | |
# make this executable with `chmod +x ./bug.sh` | |
# | |
LS=$(which ls) | |
open -a terminal $LS --args -l | |
# ls will open in a new terminal, but the `-l` argument is not passed to it | |
# terminal only runs `/bin/ls ; exit;` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
seems that
open
is closed sourcehttps://developer.apple.com/forums/thread/45355?answerId=132037022#132037022