Skip to content

exec incorrectly reports syntax error #6098

Description

@mqudsi

When exec fails because the process cannot be found, the default command-not-found handler is automatically executed. However, fish also emits a blank syntax error message, pointing to the name of the process that can't be launched:

mqudsi@Blitzkrieg /m/d/r/fish> exec fg
fg: command not found
fish:
exec fg
     ^

I believe the output should simply be

~> exec fg
fg: command not found
~> 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions