mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 21:31:14 -03:00
Revert "Switch to bare vars in our math invocations"
This reverts commit bd18736ee5.
Bare variables should only be used in commands that must
manipulate the variable stack, such as `set`.
This commit is contained in:
@@ -23,7 +23,7 @@ function contains_seq --description 'Return true if array contains a sequence'
|
||||
end
|
||||
if test "$s" = "$pattern[$i]"
|
||||
set -e nomatch[1]
|
||||
set i (math i + 1)
|
||||
set i (math $i + 1)
|
||||
if not set -q pattern[$i]
|
||||
if set -q printnext[1]
|
||||
set printnext[2] 1
|
||||
|
||||
Reference in New Issue
Block a user