fish-shell/tests/test8.err
ridiculousfish 4b079e16e5 Execute the conditions of if and while statements outside of their block
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.
2018-03-31 14:57:24 -07:00

24 lines
458 B
Text

####################
# Test variable expand
####################
# Test variable set
####################
# Test using slices of command substitution
####################
# Test more
####################
# Verify that if statements swallow failure
####################
# Verify and/or behavior with if and while statements
####################
# Catch this corner case, which should produce an error
####################
# Loop control in conditions