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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -