Maybe $(whoami) or `whoami` can work. It can give you an error, but that command is executed before the ‘full command’
$(whoami)