E534 an invalid flag to `function` is handled wrong by krader1961 · Pull Request #3574 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

an invalid flag to function is handled wrong#3574

Closed
krader1961 wants to merge 1 commit intofish-shell:masterfrom
krader1961:function-invalid-flag
Closed

an invalid flag to function is handled wrong#3574
krader1961 wants to merge 1 commit intofish-shell:masterfrom
krader1961:function-invalid-flag

Conversation

@krader1961
Copy link
Contributor

Specifically, an invalid flag keeps the function from being defined but
does not emit an error message.

Fixes #2827

Specifically, an invalid flag keeps the function from being defined but
does not emit an error message.

Fixes #2827
@krader1961
Copy link
Contributor Author

Closed with merge of commit 320cb68.

@faho faho added the release notes Something that is or should be mentioned in the release notes label Dec 2, 2016
@hauleth
Copy link
Contributor
hauleth commented Feb 7, 2017

There is one issue, currently it is impossible to define function with name - which was legal previously. This really bothers me as there is no alternative to that #709 was never accepted and provide non uniform feel when using auto chdir.

@krader1961
Copy link
Contributor Author

@hauleth: The solution is to use an abbreviation: abbr -a -- - 'cd -'.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something that's not working as intended release notes Something that is or should be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

passing invalid long option to function silently causes function definition to fail

3 participants

0