Jump to content

"Open Terminal Here" file selection action improper path escaping [Fixed b178]


UNOwen
 Share

Recommended Posts

With Alfred v2.0.1 (173), whenever I try to open a terminal (doesn't matter if iTerm or Terminal) on a folder containing either of ()[] symbols, using the `Open Terminal Here` action of `File Selection` actions, entering the directory fails.

 

E.g. for "Applications (Parallels)" I invoke file selection actions, choose `Open Terminal Here`. The terminal opens, with the following:

cd /Users/user/Applications\ (Parallels)/
user % cd /Users/user/Applications\ (Parallels)/
zsh: no matches found: /Users/user/Applications (Parallels)/
user %

However, this would work:

user % cd /Users/user/Applications\ \(Parallels\)/
Applications (Parallels) %

I did not modify the standard action. My terminal shell is zsh though, which is not default.
 

Link to comment
Share on other sites

With Alfred v2.0.1 (173), whenever I try to open a terminal (doesn't matter if iTerm or Terminal) on a folder containing either of ()[] symbols, using the `Open Terminal Here` action of `File Selection` actions, entering the directory fails.

 

E.g. for "Applications (Parallels)" I invoke file selection actions, choose `Open Terminal Here`. The terminal opens, with the following:

cd /Users/user/Applications\ (Parallels)/
user % cd /Users/user/Applications\ (Parallels)/
zsh: no matches found: /Users/user/Applications (Parallels)/
user %

However, this would work:

user % cd /Users/user/Applications\ \(Parallels\)/
Applications (Parallels) %

I did not modify the standard action. My terminal shell is zsh though, which is not default.

 

 

Well spotted, thanks! I've added a ticket for this :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...