mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-02 11:01:15 -03:00
use variable assignments on commandline in completions
Fixes #6507 To do: If a variable assignment uses a command substitution that errors, the error is printed, but without a proper location.
This commit is contained in:
@@ -91,3 +91,7 @@ eval ': | a=b'
|
||||
# CHECKERR: {{.*}}: Unsupported use of '='. In fish, please use 'set a b'.
|
||||
eval 'not a=b'
|
||||
# CHECKERR: {{.*}}: Unsupported use of '='. In fish, please use 'set a b'.
|
||||
|
||||
complete -c foo -xa '$a'
|
||||
a=b complete -C'foo '
|
||||
#CHECK: b
|
||||
|
||||
Reference in New Issue
Block a user