xargs doesn’t recognize bash aliases
Since only your interactive shell knows about aliases, why not just run the alias without forking out through xargs? find . -iname ‘.#*’ -print0 | while read -r -d ” i; do foobar “$i”; done If you’re sure that your filenames don’t have newlines in them (ick, why would they?), you can simplify this to … Read more