bash compliant pt()