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

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

Merged
merged 2 commits into from Apr 13, 2015
Merged

Conversation

@sivy
Copy link

@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 2 commits Apr 13, 2015
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.
@sivy sivy added this to the 1.11 milestone Apr 13, 2015
@sivy sivy changed the title Redirect cd output to /dev/null in case of CDPATH - Fixes #980 Redirect cd output to /dev/null in case of CDPATH Apr 13, 2015
@bitprophet bitprophet changed the title Redirect cd output to /dev/null in case of CDPATH Redirect cd output to /dev/null in case of CDPATH - fixes #980 Apr 13, 2015
@sivy sivy changed the title Redirect cd output to /dev/null in case of CDPATH - fixes #980 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
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
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants