Implement full arg handling for exec().