Emulate it's bash counterpart.