in reply to getting the real and effective UIDs of current process

Yep, $< and $> work fine. In order to use the long variable names ($UID or $REAL_USER_ID and $EUID or $EFFECTIVE_USER_ID) you have to use English; Note that "English" is capitalized.