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

Merged
merged 2 commits into from Apr 13, 2015

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.
15363db
Steve Ivy don't redirect on windows. 807cef3
@sivy sivy added this to the 1.11 milestone Apr 13, 2015
@bitprophet bitprophet was assigned by sivy 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 bitprophet added a commit that referenced this pull request Apr 13, 2015
@bitprophet bitprophet Changelog re #1312 c117453
@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