wynsmart Posted October 21, 2013 Posted October 21, 2013 When I was using "Open Terminal here" action today, I found that this command is not executed with arguments quoted. For example, here I got a folder named "a&b", when I perform "Open Terminal Here", a error happened. Why? I am guessing that the terminal actually executes such a command, "cd a&b", so it is apparently that this command is split by the symbol "&". I hope you can fix this bug just by surrounding the target folder path with a pair of quotes like this: cd "a&b" instead of: cd a&b thanks~ by iSMart
Andrew Posted October 22, 2013 Posted October 22, 2013 When I was using "Open Terminal here" action today, I found that this command is not executed with arguments quoted. For example, here I got a folder named "a&b", when I perform "Open Terminal Here", a error happened. Why? I am guessing that the terminal actually executes such a command, "cd a&b", so it is apparently that this command is split by the symbol "&". I hope you can fix this bug just by surrounding the target folder path with a pair of quotes like this: cd "a&b" instead of: cd a&b thanks~ by iSMart Ah nicely spotted, the & character needs escaping. I'll get this fixed up in the next release Cheers, Andrew
Andrew Posted October 23, 2013 Posted October 23, 2013 When I was using "Open Terminal here" action today, I found that this command is not executed with arguments quoted. For example, here I got a folder named "a&b", when I perform "Open Terminal Here", a error happened. Why? I am guessing that the terminal actually executes such a command, "cd a&b", so it is apparently that this command is split by the symbol "&". I hope you can fix this bug just by surrounding the target folder path with a pair of quotes like this: cd "a&b" instead of: cd a&b thanks~ by iSMart This should now be fixed in the 2.1 b216 pre-release
cands Posted March 16, 2022 Posted March 16, 2022 I now experience the issue described here in Alfred 4.6.3 on macOS 12.2 when using the "Open Terminal Here" file action with a file that has a path with spaces in it, the path is not quoted so the cd command in iTerm fails. If this can be reproduced by others I hope this can be fixed, thank you.
Andrew Posted March 16, 2022 Posted March 16, 2022 3 hours ago, cands said: so the cd command in iTerm fails If you're using iTerm, then you'll be using custom AppleScript in Alfred's Features > Terminal preferences, and this is where the root of your issue will be. There are plenty of people also using iTerm, so perhaps check around to see if there is some up to date AppleScript available.
vitor Posted March 16, 2022 Posted March 16, 2022 @cands Check https://github.com/vitorgalvao/custom-alfred-iterm-scripts for an up-to-date iTerm2 script. cands 1
cands Posted March 20, 2022 Posted March 20, 2022 On 3/16/2022 at 4:27 PM, vitor said: @cands Check https://github.com/vitorgalvao/custom-alfred-iterm-scripts for an up-to-date iTerm2 script. Thank you both, I confirm that the problem was resolved by updating the iTerm2 script.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now