mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-24 03:21:15 -03:00
Add hint to error message about cmdsub in command position
We might end up allowing this but let's add some help for now. See #5575
This commit is contained in:
@@ -25,7 +25,7 @@ FOO=BAR (true one)
|
||||
# more things
|
||||
' | $fish 2>| string replace -r '(.*)' '<$1>'
|
||||
|
||||
# CHECK: <fish: command substitutions not allowed here>
|
||||
# CHECK: <fish: command substitutions not allowed in command position. Try var=(your-cmd) $var ...>
|
||||
# CHECK: <FOO=BAR (true one)>
|
||||
# CHECK: < ^~~~~~~~~^>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user