I am trying to use rc as my login shell in Ubuntu (using chsh). I noticed that it does not read $HOME/.rcrc file on startup. The documentation says that if invoked as a login shell with either *argv == '-' or with -l flag, it reads the .rcrc file, and I can verify that by executing it directly by
$ rc -l. or from zsh
However when executed on login, it does not read the .rcrc file, and ps output indicates that the shell name is just "rc" not "-rc". Thus my question is, how to get /usr/bin/rc to read .rcrc at startup? and why is ubuntu not prefixing "-" to the shell? Is there a different way to detect the shell is a login shell?