Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cd completion spews on receiving [ #562
@ridiculousfish I don't think it's appropriate for completion to ever
In order to support variables and globbing, which are still nice to use, fish should instead just have a builtin that expands those without expanding command substitutions.
It doesn't spew that error anymore and handles mostly okay - the issue happens when you enter "[" manually.
If you have a directory called "[foobar]", enter "[foo" and then complete, it will complete to "[foobar]", which is actually a valid way to express that directory name. If you have a directory name without the closing bracket, it won't escape anything if you've manually entered it (picking via pager is okay).
Do we have a bug about that? It's kinda the same thing as #2300 - our completion doesn't always escape properly.
@smarek: I'm biased and I'm saying yes. It's improved at least.