Allow foo=bar global variable assignments

override fixes
This commit is contained in:
Johannes Altmanninger
2024-11-21 11:02:34 +01:00
parent 0199583435
commit 45a2017580
11 changed files with 268 additions and 144 deletions

View File

@@ -101,10 +101,10 @@ $fish --no-config .
# CHECKERR: error: Unable to read input file: Is a directory
# CHECKERR: warning: Error while reading file .
$fish --no-config -c 'echo notprinted; echo foo; a=b'
# CHECKERR: fish: Unsupported use of '='. In fish, please use 'set a b'.
# CHECKERR: echo notprinted; echo foo; a=b
# CHECKERR: ^~^
$fish --no-config -c 'echo notprinted; echo foo; echo $%'
# CHECKERR: fish: $% is not a valid variable in fish.
# CHECKERR: echo notprinted; echo foo; echo $%
# CHECKERR: ^
$fish --no-config -c 'echo notprinted | and true'
# CHECKERR: fish: The 'and' command can not be used in a pipeline