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

Bash completions can't be used in ZSH #8

Open
cj123 opened this issue Apr 26, 2017 · 3 comments
Open

Bash completions can't be used in ZSH #8

cj123 opened this issue Apr 26, 2017 · 3 comments

Comments

@cj123
Copy link
Collaborator

cj123 commented Apr 26, 2017

Bash completions in zsh in macOS do not work correctly. the first command e.g. tid e[TAB] works correctly, but then the subcommands of this fail to load, instead the main commands are listed again as well as the following error:

_tid_get_args:2: bad option: -a

I had a quick look into the completions, and by changing

    IFS=", " read -r -a RAW_PATH <<< "$COMP_LINE"

to

    IFS=", " read -r -A RAW_PATH <<< "$COMP_LINE"

the issue was fixed. I do not however know the implications of this on the bash completions on other platforms.

@cj123 cj123 added the bug label Apr 26, 2017
@seeruk
Copy link
Owner

seeruk commented Apr 26, 2017

Hmm, perhaps we can just copy tid.bash to tid.zsh, change that and call it a day?

@cj123
Copy link
Collaborator Author

cj123 commented Apr 26, 2017

I suppose so, it's a shame to need to do it for a small case change though :/

@seeruk
Copy link
Owner

seeruk commented Apr 26, 2017

I did check, and it would break bash, unfortunately :(

@seeruk seeruk changed the title errors in bash completions in zsh on macOS Bash completions can't be used in ZSH Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants