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

Redirect cd output to /dev/null in case of CDPATH #1312

Merged
merged 2 commits into from Apr 13, 2015

Conversation

Projects
None yet
2 participants
@sivy

sivy commented Apr 13, 2015

This redirects the output of the cd command to /dev/null so that in cases where CDPATH is set, the output from cd won't be captured. Will not add the redirect on Windows. Fixes #980.

Steve Ivy added some commits Apr 13, 2015

Steve Ivy
Fixes #980 - Route output of cd to dev/null
In the corner case where CDPATH is used, `cd` outputs the
directory that was `cd`'d to. To keep this output from
messing up commands, redirect output to /dev/null.
Steve Ivy

@sivy sivy added this to the 1.11 milestone Apr 13, 2015

@sivy sivy changed the title from Redirect cd output to /dev/null in case of CDPATH - Fixes #980 to Redirect cd output to /dev/null in case of CDPATH Apr 13, 2015

@bitprophet bitprophet changed the title from Redirect cd output to /dev/null in case of CDPATH to Redirect cd output to /dev/null in case of CDPATH - fixes #980 Apr 13, 2015

@sivy sivy changed the title from Redirect cd output to /dev/null in case of CDPATH - fixes #980 to Redirect cd output to /dev/null in case of CDPATH Apr 13, 2015

bitprophet added a commit that referenced this pull request Apr 13, 2015

@bitprophet bitprophet merged commit 807cef3 into fabric:1.9 Apr 13, 2015

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment