Skip to content

nsh_alias.c: unalias -a command does not work correctly#2095

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
tiiuae:alias_remall_fix
Sep 25, 2023
Merged

nsh_alias.c: unalias -a command does not work correctly#2095
xiaoxiang781216 merged 1 commit into
apache:masterfrom
tiiuae:alias_remall_fix

Conversation

@pussuw
Copy link
Copy Markdown
Contributor

@pussuw pussuw commented Sep 25, 2023

Summary

getopt returns the argument if it is found, so testing against != ERROR is wrong. Testing against 'a' in this case is correct (no other
arguments are possible)

Impact

Fix trivial bug in alias handling (remove all aliases command)

Testing

unalias -a works

getopt returns the argument if it is found, so testing against != ERROR is
wrong.
@xiaoxiang781216 xiaoxiang781216 merged commit e9f4e87 into apache:master Sep 25, 2023
@pussuw pussuw deleted the alias_remall_fix branch September 25, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants