Removed bashisms.