mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
Use set -l to force use of a local variable
Bare set overwrites a global/universal variable if it exists.
This commit is contained in:
@@ -14,7 +14,7 @@ function __fish_move_last -d "Move the last element of a directory history from
|
||||
# Append current dir to the end of the destination
|
||||
set -g (echo $dest) $$dest $PWD
|
||||
|
||||
set ssrc $$src
|
||||
set -l ssrc $$src
|
||||
|
||||
# Change dir to the last entry in the source dir-hist
|
||||
builtin cd $ssrc[$size_src]
|
||||
|
||||
Reference in New Issue
Block a user