I have :setenv=VIMINIT=let \\$MYVIMRC="~/config/vim/vimrc" | source \\$MYVIMRC: in /etc/login.conf while that worked fine on 13.2 it stopped working after upgrading to 13.3 login.conf(5) and getcap(3) don't list any reason, why " *inside* string values shouldn't work and don't list any way to escape them, as it shouldn't be needed too. Possible related to bug 236204 which seems to have introduced double parsing instead of adding a way to read key value lists from capdb entries.
Arg...so ugly :-(
Hm, I think that was in fact a deliberate choice on my part, to treat quotes the way one would in sh. I'd have to go try a test with it.
(In reply to Sean Eric Fagan from comment #2) sh has one of the worst ways to handle strings (there are reasons like word splitting for that, but that still doesn't make it good and those reasons don't apply to login.conf and similar). I think bug 236204 should have been fixed, by not treating '\054' as if it were ','. As that would give you propper terminators for strings.