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

Prefer tee over > to maximize compatibility #622

Merged
merged 2 commits into from
Jan 23, 2015
Merged

Conversation

ohcibi
Copy link
Contributor

@ohcibi ohcibi commented Jan 21, 2015

No description provided.

@ljharb
Copy link
Member

ljharb commented Jan 22, 2015

Can you also provide a test case, ideally one that would fail on zsh + master?

@ohcibi
Copy link
Contributor Author

ohcibi commented Jan 22, 2015

I’ll see what I can do. I have absolutely no knowledge of the test suite you are using. Can you give me a few hints/links to docs?

@ljharb
Copy link
Member

ljharb commented Jan 22, 2015

@ohcibi Sure - it's called urchin. Basically each test is an executable shell file. It seems like the test case you want is a file that does nvm alias default foo && nvm alias default bar and asserts that nvm alias default is "bar"?

@ljharb
Copy link
Member

ljharb commented Jan 23, 2015

Awesome, this is great. Can you rebase it on top of master, and I'll merge it asap?

As mentioned in nvm-sh#615 it is possible to configure `>` to not override
existing files by default. `tee` is a standard tool that can be used
shell independent.
ljharb added a commit that referenced this pull request Jan 23, 2015
Prefer tee over > to maximize compatibility
@ljharb ljharb merged commit 223f388 into nvm-sh:master Jan 23, 2015
ljharb added a commit to ljharb/nvm that referenced this pull request Feb 10, 2015
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.

2 participants