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
Hi I'm using fish version 2.5.0. The documentation for pushd says
pushd
pushd +NUMBER rotates the stack counter-clockwise i.e. from bottom to top pushd -NUMBER rotates clockwise i.e. top to bottom.
But all I get is
~> dirs /tmp/c /tmp/b /tmp/a /tmp ~> pushd +1 cd: The directory “+1” does not exist
sh -c 'env HOME=$(mktemp -d) fish'
/tmp> mkdir a b c
/tmp> pushd a /tmp/a> pushd ../b /tmp/b> pushd ../c /tmp/c> dirs /tmp/c /tmp/b /tmp/a /tmp
pushd +1
/tmp/c> pushd +1 cd: The directory “+1” does not exist /tmp/c> dirs /tmp/c /tmp/c /tmp/b /tmp/a /tmp
Current directory changed to /tmp/b, dirs stack is /tmp b /tmp/a /tmp /tmp/c
/tmp/b
/tmp b /tmp/a /tmp /tmp/c
The text was updated successfully, but these errors were encountered:
Introduced by commit 3702616, 2016-08-28, which was trying to do the right thing by switching to local variables in the function but introduced them inside a if...end block which means they aren't visible to the rest of the function.
if...end
Sorry, something went wrong.
The issue is this:
if count $argv set -l rot_l end # And now we're using rot_l
ee646c8
krader1961
No branches or pull requests
Hi
I'm using fish version 2.5.0. The documentation for
pushd
saysBut all I get is
Steps to reproduce:
sh -c 'env HOME=$(mktemp -d) fish'
pushd +1
:Expected result:
Current directory changed to
/tmp/b
, dirs stack is/tmp b /tmp/a /tmp /tmp/c
The text was updated successfully, but these errors were encountered: