martin f krafft writes: > Anyway, I am not sure at this moment whether my patch is actually > the right thing to do, so give me a few days to make sure it is > actually doing the right thing. I am now starting to think that > a terminal emulator should always start shells with SHLVL=0...
Well, upstream doesn't seem to like it: http://lists.schmorp.de/pipermail/rxvt-unicode/2008q4/000721.html I realize I should have pointed out (to you) that urxvtc does send its environment to the new terminal that urxvtd creates. That may or may not be useful. (OK not really, what we would like here is for urxvtcd to Just Work out-of-the-box...) Ultimately I think using a login shell for this (as mentioned in the thread) would be the way to go. Since not all users want every terminal to be a login shell (I don't), I'd have to leave the default as off, and make it a FAQ... and then we'd have to ensure that bash and zsh correctly set SHLVL to some known value for login shells (which seems like what one wants here) -- it seems to me that they should anyway. You want to count the number of shells from the "login" shell, right? (OTOH, if Debian's /etc/bashrc fixes this up and other distributions don't... meh.) -- things change. [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]