Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: command not found on empty arg (#887) #888

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Conversation

mdonnalley
Copy link
Contributor

Merges #887

when topicSeparator is a space and an empty string arg is given, the searched command ID had an extra colon:

example:

set FOO=""
cli cmd ${FOO} --bar

result: command not found "cmd"

root cause: incorrect parsing in standardizeIDFromArgv, which for the above example returned cmd: as the command ID.

when `topicSeparator` is a space and an empty string arg is given,
the searched command ID had an extra colon:

example:

```bash
set FOO=""
cli cmd ${FOO} --bar
```

result: command not found "cmd"

root cause: incorrect parsing in `standardizeIDFromArgv`,
which for the above example returned `cmd:` as the command ID.
@mdonnalley mdonnalley merged commit a8ca6cc into main Nov 30, 2023
60 checks passed
@mdonnalley mdonnalley deleted the mdonnalley/887 branch November 30, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants