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 using fish version 2.7.1 running on Fedora 29 x86_64.
Let's say for example that I create a directory like this:
mkdir -- -mydirectory
this creates a directory called -mydirectory (note that its name begins with the - character)
now I want to go to that directory.
If I try to run:
cd -mydirectory
it fails with:
cd: Unknown option '-mydirectory/'
/usr/share/fish/functions/cd.fish (line 30):
builtin cd $argv
^
in function 'cd'
called on standard input
with parameter list '-mydirectory/'
ok, let's try with:
cd -- -mydirectory
and it fails with the error:
Too many args for cd command
So I don't know any other method to cd to that directory
The text was updated successfully, but these errors were encountered:
For the second case, the cd function tests if there's more than one argument and prints Too many args for cd command if there is.
@bugnano As a workaround, you can use builtin cd -- -mydirectory and it'll work, but prevd and nextd won't work right, as the cd function sets those up.
I'm using fish version 2.7.1 running on Fedora 29 x86_64.
Let's say for example that I create a directory like this:
this creates a directory called -mydirectory (note that its name begins with the
-
character)now I want to go to that directory.
If I try to run:
it fails with:
ok, let's try with:
and it fails with the error:
So I don't know any other method to cd to that directory
The text was updated successfully, but these errors were encountered: