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

Suckless terminal in ewrap #1934

Closed
kovmir opened this issue Sep 19, 2024 · 2 comments
Closed

Suckless terminal in ewrap #1934

kovmir opened this issue Sep 19, 2024 · 2 comments
Labels

Comments

@kovmir
Copy link
Contributor

kovmir commented Sep 19, 2024

My ewrap:

#!/usr/bin/env sh

if [ -n "$TMUX" ] ; then
    tmux split-window -h "$EDITOR \"$*\""
else
    st "nvim \"$*\""
fi

If I open nnn in st without tmux and try to open a plain-text file, I get child exited with status 1. It works if I use xterm -e in place of st in ewrap. Why does it not work with st?

@N-R-K
Copy link
Collaborator

N-R-K commented Sep 19, 2024

The arguments must be separate for st. The following works for me:

st -e vim "$@"

@N-R-K N-R-K closed this as completed Sep 19, 2024
@N-R-K N-R-K added the question label Sep 19, 2024
@kovmir
Copy link
Contributor Author

kovmir commented Sep 19, 2024

Ah, it should be "$EDITOR" "$@" not "$EDITOR $@". The editor and the arguments must not be a single string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants