mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Allow erasing vars via function-scope
This triggered an assert because the remove code had no idea how to find the function scope. Oops!
This commit is contained in:
@@ -806,3 +806,17 @@ end
|
||||
test-function-scope
|
||||
echo $funcvar $funcvar2
|
||||
# CHECK:
|
||||
|
||||
function erase-funcvar
|
||||
set -l banana 1
|
||||
begin
|
||||
set -l banana 2
|
||||
set -ef banana
|
||||
echo $banana
|
||||
# CHECK: 2
|
||||
end
|
||||
echo $banana
|
||||
# CHECK:
|
||||
end
|
||||
|
||||
erase-funcvar
|
||||
|
||||
Reference in New Issue
Block a user