Basic validation for PATHSPEC operation argument.