-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Spaces in command are not being processed correctly. #57
Comments
I wrote two functions to correct the behavior:
Both seem to work fine in my testing but checking edge cases may be necessary, I don't like the second one as it is a little convoluted but running benchmarks proved that it is much faster than the regex option. |
I also encountered this issue in nwg-menu. This seems important! |
I'll get back to it soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Commands with spaces (in file names for example) won't run no matter what.
Suppose I want to run the following command
retroarch Chrono Trigger.smc
In which "Chrono Trigger.smc" is the name of the file. In standard bash we can express the middle space by two different ways (that I know of):
retroarch Chrono\ Trigger.smc
retroarch "Chrono Trigger.smc"
Ideally they would both work in
nwg-drawer
but it seems that none of these does.I tried to go through the source code but couldn't find a clear path to fix it.
The text was updated successfully, but these errors were encountered: