restrict input of pipeline or redirection