Skip to content

caret positioned incorrectly or not shown in errors expanding in command position #5812

@floam

Description

@floam

This happens when the expansion happens in a command position:

$ if $,asd
fish: $, is not a valid variable in fish.
if $,asd
 ^
$ command $,asd
fish: $, is not a valid variable in fish.
command $,asd
 ^

No carat at all is shown here, but one should be shown.

$ command (asd)
fish: Command substitutions not allowed

Metadata

Metadata

Assignees

Labels

bugSomething that's not working as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions