We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem
The cargo command completion shell script produces syntax errors when loaded:
-bash: /redacted/.rustup/toolchains/stable-x86_64-apple-darwin/etc/bash_completion.d/cargo: line 82: syntax error in conditional expression: unexpected token `(' -bash: /redacted/.rustup/toolchains/stable-x86_64-apple-darwin/etc/bash_completion.d/cargo: line 82: syntax error near `@(t' -bash: /redacted/.rustup/toolchains/stable-x86_64-apple-darwin/etc/bash_completion.d/cargo: line 82: ` if [[ "${cmd}" = @(test|bench) ]]; then'
Steps
source $(rustc --print sysroot)/etc/bash_completion.d/cargo
Possible Solution(s)
Notes
Output of bash --version: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18) Copyright (C) 2007 Free Software Foundation, Inc.
bash --version
Output of rustup --version: rustup 1.18.0 (8603e2c 2019-04-22)
rustup --version
The text was updated successfully, but these errors were encountered:
Hi, the completions come from Cargo rather than rustup itself, this is probably better filed against rust-lang/cargo
rust-lang/cargo
Sorry, something went wrong.
Fixed in rust-lang/cargo#6905
No branches or pull requests
Problem
The cargo command completion shell script produces syntax errors when loaded:
Steps
source $(rustc --print sysroot)/etc/bash_completion.d/cargo
in a shell.Possible Solution(s)
Notes
Output of
bash --version
:GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Copyright (C) 2007 Free Software Foundation, Inc.
Output of
rustup --version
: rustup 1.18.0 (8603e2c 2019-04-22)The text was updated successfully, but these errors were encountered: