Ensure Reading a .inputrc file doesn't break phpsh

(cherry picked from commit fb27c166c35aabdfcd00ca31eaecaccae2bab622)

Conflicts:
	src/__init__.py

Re-added as updates merged in broke command line history