~ :) gudo () { su -c "$@"; }
~ :) gudo echo foo bar
su: user foo does not exist
I searched it up, and apparently "$@" and expands to "foo" "bar" while "$*" expands to "foo bar", and the latter is what we want. From a quick test on my machine, that replacement in in your function definition seems to fix it :).