ghostty -e trying to execute all passed arguments
#8905
Replies: 5 comments 7 replies
-
|
You need to use macOS's built-in open -na Ghostty.app -e nvim /tmp/fooIt is generally discouraged to directly call the binary on macOS and recommended to use |
Beta Was this translation helpful? Give feedback.
-
|
can you try wrapping the command in quotes? $ open -a Ghostty.app -e "nvim /tmp/foo" |
Beta Was this translation helpful? Give feedback.
-
|
The issue persists with version 1.2.1 |
Beta Was this translation helpful? Give feedback.
-
|
Im pretty sure you can't use the cli like that What does
Do I see this was suggested slightly above i thought --args is important though Yeah look at https://ss64.com/mac/open.html It has a -e flag it definitely wasn't ghostty getting it |
Beta Was this translation helpful? Give feedback.
-
|
@hqnna / @rhodes-b any more advice on this? Should this be converted to an issue? |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When I try to open Neovim pointing to a file with
ghostty -eit tries to open both Neovim and the file.Expected Behavior
I expect
nvimto open with/tmp/fooand Ghostty to not ask for confirmation to open/tmp/foo.Actual Behavior
When I run the following command,
I observe that Ghostty is trying to open both
nvimand/tmp/fooafter openingnvimwith/tmp/foo.If
/tmp/foodoesn't exist then it only opensnvim.Based on #7032, I tried the following variants but none of them seemed to work for me.
Reproduction Steps
Run the following commands,
Ghostty Logs
Ghostty Version
OS Version Information
macOS 26
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions