-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething that's not working as intendedSomething that's not working as intendedregressionSomething that used to work, but was broken, especially between releasesSomething that used to work, but was broken, especially between releasesrelease notesSomething that is or should be mentioned in the release notesSomething that is or should be mentioned in the release notes
Milestone
Description
While responding to this comment I noticed that passing an invalid long option to the function command causes the function definition to silently fail.
Reproduction Steps:
- Type
function wtf --on-function-return
echo wtf called
end
The $status var is set to one but no error message is emitted.
- type
wtfand notice you get this error:fish: Unknown command 'wtf' - type
functionsand notice wtf isn't present.
Expected behavior:
The function definition fails with an explicit error message.
Fish version: git head
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething that's not working as intendedSomething that's not working as intendedregressionSomething that used to work, but was broken, especially between releasesSomething that used to work, but was broken, especially between releasesrelease notesSomething that is or should be mentioned in the release notesSomething that is or should be mentioned in the release notes