Fix $/# depending on effective user ID.