mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
4b079e16e5
Variables set in if and while conditions are in the enclosing block, not the if/while statement block. For example: if set -l var (somecommand) ; end echo $var will now work as expected. Fixes #4820. Fixes #1212.
25 lines
500 B
Text
25 lines
500 B
Text
|
|
####################
|
|
# Verify behavior of `set --show` given an invalid var name
|
|
$argle bargle: invalid var name
|
|
|
|
####################
|
|
# Verify behavior of `set --show`
|
|
|
|
####################
|
|
# Appending works
|
|
|
|
####################
|
|
# Prepending works
|
|
|
|
####################
|
|
# Appending and prepending at same time works
|
|
|
|
####################
|
|
# Setting local scope when no local scope of the var uses the closest scope
|
|
|
|
####################
|
|
# Exporting works
|
|
|
|
####################
|
|
# if/for/while scope
|