ash: fix "(cat < file)" hang introduced by rev 22944.