I notice the lack of replies. Here is a hack I have used in the past, assuming you are on *nix. Setup a symbolic link to the script, use the 'real' name in one instance, and the link name in the other. I appreciate it doesn't answer your question about altering $0!