Lines Matching full:variable
6 # Note that the argument in the parentheses is a variable name, not an
16 # An undefined variable counts as empty.
21 # An undefined variable has the empty string as the value, and the :M
22 # variable modifier does not change that.
30 # no longer empty, but it is still based on an undefined variable. There are
51 # When an expression is based on an undefined variable, its modifiers interact
54 # is based on an undefined variable. The :U modifier that follows only looks
55 # at the definedness state to decide whether the variable is defined or not.
59 # Since the variable was undefined to begin with, the fallback value from the
67 # The variable EMPTY is completely empty (0 characters).
72 # The variable SPACE has a single space, which counts as being empty.
77 # The variable .newline has a single newline, which counts as being empty.
82 # The variable ZERO has the numeric value 0, but is not empty. This is a
93 # The following example constructs an expression with the variable name ""
105 # Now the variable named " " gets a non-empty value, which demonstrates that
107 # function. If the spaces were trimmed, the variable name would be "", and
108 # that variable is indeed undefined. Since CondParser_FuncCallEmpty allows
110 # undefined variable "" would be returned as an empty string.
130 # The variable WORD has the value "word", which does not count as empty.
135 # The expression ${} for a variable with the empty name always evaluates
145 # The argument expands to "WORD", and that variable is defined at the
154 # Spaces inside the parentheses are interpreted as part of the variable name.
159 ${:U WORD }= variable name with spaces
161 # Now there is a variable named " WORD ", and it is not empty.
166 # expect+2: Unclosed variable "WORD"
175 # the following example generated a wrong error message "Variable VARNAME is
185 # In this example, the variable "VARNAME2" is not defined, so evaluation of
190 # When evaluating the !empty condition, the variable name was parsed as
193 # string, the resulting variable name was thus "VARNAME". This conceptually
194 # wrong variable name should have been discarded quickly after parsing it, to
204 # This was fixed by evaluating nested expressions in the variable name only
213 # since there is no variable named 'empty', the condition evaluates to false.