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

Popular posts from this blog

renaming files in a directory using python or R -

html - outline-style different in chrome compared to firefox and internet explorer -

Images won't display through CSS -