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

Shellcheck bash_completion #1324

Merged
merged 2 commits into from
Nov 25, 2016

Conversation

PeterDaveHello
Copy link
Collaborator

No description provided.

alias unalias reinstall-packages \
current list ls list-remote ls-remote \
clear-cache deactivate unload \
COMMANDS='
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these newline escapes not needed for single-quoted strings? i thought only double-quoted strings could have unescaped newlines.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed at all :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SC1004: You don't break lines with \ in single quotes, it results in literal backslash-linefeed.

Same as what I know.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you print $COMMANDS out, you'll see:

\ help install uninstall use run exec \ alias unalias reinstall-packages \ current list ls list-remote ls-remote \ clear-cache deactivate unload \ version which

@ljharb ljharb merged commit b7f9fbd into nvm-sh:master Nov 25, 2016
@ljharb ljharb added the testing Stuff related to testing nvm itself. label Nov 25, 2016
@PeterDaveHello PeterDaveHello deleted the shellcheck-bash_completion branch November 25, 2016 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Stuff related to testing nvm itself.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants