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'm running into the same problem as #68 , except I wasn't trying to hard code any colors. I want to create a script similar to dmenu_run which gets passed whatever command dmenu expects and it does the right thing. my initial attempt looks like this:
This causes problem since the line is executed by a shell which treats "#" as a comment. I tried some ways to escape it but without success. what should I do here? imo, using a shell to parse --dmenu= is too strong, since the user is probably invoking the command with a shell already so any parsing can be done beforehand.
The text was updated successfully, but these errors were encountered:
i.e. after -- is the dmenu command that will be used.
This way the program can just directly exec the rest of the argv after -- and don't need to invoke the shell or do any parsing.
After much digging, I found this feature of bash (which means i need to use bash :\). it solves my exact problem, but obviously doesn't scale well to other escaping problems.
I'm running into the same problem as #68 , except I wasn't trying to hard code any colors. I want to create a script similar to dmenu_run which gets passed whatever command dmenu expects and it does the right thing. my initial attempt looks like this:
This causes problem since the line is executed by a shell which treats "#" as a comment. I tried some ways to escape it but without success. what should I do here? imo, using a shell to parse --dmenu= is too strong, since the user is probably invoking the command with a shell already so any parsing can be done beforehand.
The text was updated successfully, but these errors were encountered: