mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Fix cd .. to the root directory
The leading slash always needs to be present, even if there aren't any other components. This was introduced by the Rust port.
This commit is contained in:
@@ -194,6 +194,12 @@ cd $old_path
|
||||
cd file
|
||||
cd $old_path
|
||||
|
||||
# Test that going up to the root directory using .. works
|
||||
cd /(string split --no-empty -f 1 / (pwd))
|
||||
cd ..
|
||||
pwd
|
||||
#CHECK: /
|
||||
|
||||
# cd back before removing the test directory again.
|
||||
cd $oldpwd
|
||||
rm -Rf $base
|
||||
|
||||
Reference in New Issue
Block a user