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

Add missing backslash for dots #1322

Merged
merged 1 commit into from
Nov 25, 2016

Conversation

PeterDaveHello
Copy link
Collaborator

No description provided.

@PeterDaveHello PeterDaveHello changed the title Add missing backslash for dots, cc #1279, 2a2b8bd, cadbbce Add missing backslash for dots Nov 24, 2016
@@ -116,7 +116,7 @@ export NVM_DIR="$HOME/.nvm" && (
git clone https://github.com/creationix/nvm.git "$NVM_DIR"
cd "$NVM_DIR"
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
) && . "$NVM_DIR/nvm.sh"
) && \. "$NVM_DIR/nvm.sh"
Copy link
Member

Choose a reason for hiding this comment

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

The readme doesn't need the slash - virtually nobody actually aliases . to something.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm a little bit confused ..., so nobody actually aliases . to something, why do we need to backslash them in some other places as the references?

Copy link
Member

Choose a reason for hiding this comment

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

virtually nobody. One user did it, and as a requirement for accepting their change to \. in the script, i wanted the tests to exercise that too.

I don't want that going in the readme, though, to tacitly encourage the practice.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So just remove the part in readme? What about line 77, 127?

Copy link
Member

Choose a reason for hiding this comment

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

The only places . should be escaped are in actual code - not in documentation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, should I remove all of it in readme? Thanks.

Copy link
Member

Choose a reason for hiding this comment

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

Yes please.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

@ljharb ljharb merged commit 7ed1e71 into nvm-sh:master Nov 25, 2016
@PeterDaveHello PeterDaveHello deleted the fix-backslash-for-dots branch November 25, 2016 05:49
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.

None yet

2 participants