3 ms·
Would `arch -x86_64 $SHELL` work?
Would `arch -x86_64 $SHELL` work?
Just tried and it works :) .. Nice.
In theory yes, since it inherits the shell env from the parent.
Haven't got the $$$ to test though.
EDIT: you could also craft an oneliner if $SHELL is not defined, something like:
`ps -T $$ | awk 'NR==2{print $NF}' | arch -x86_64 $0`