I guess bash is only used in run_prepare_command, but I'm not sure if the CDPATH should be unset globally at some other point so it can't create problems in the future.
Also, should this have a test?
Unset the `CDPATH` env variable before shelling-out. #1694
@apalancat it would be great for this to have a test, yes!
Also a small note in the documentation of the method referencing the original issue would be helpful... finally don't forget to add an entry to changelog and credit yourself!
Merge branch 'master' of github.com:CocoaPods/CocoaPods
Test and documentation for issue #1694
Not sure if I messed up by doing a merge of 0.30 and updating the PR, let me know if I should change anything.
Otherwise I think it should be OK, tests & doc
Issue has been confirmed by @AhmadAlokush