find - Passing all arguments in zsh function -
i trying write simple function in .zshrc hides errors (mostly "permission denied") find
.
now, how can pass arguments given calling function find
?
function superfind() { echo "errors suppressed!" find $(some magic here) 2>/dev/null }
i $1 $2 $3 $4 ...
stupid! sure there simple way.
use $@
, expands positional arguments, e.g.:
superfind () { echo "errors suppressed!" find "$@" 2> /dev/null }
Comments
Post a Comment