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

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -