It's not doing anything - probably a typo in the original UDF which has now been fixed.

Replace "$DOS" with "@DOS" and it'll make more sense.