i'm trying to clarify the numerous ways to invoke bash -- login vs non-login shell, interactive vs non-interactive -- the implications this has for startup files and so on.
first, is there any more comprehensible explanation than the man page? i mean, the man page is all right, but it sure is terse. and second, AFAICT, there are two ways to see the invocation method that i know of 1) running "ps -f" -- if the shell name is prefixed with a "-", then this was a login shell 2) display the invocation options with "echo $-". if there's an "i" in there somewhere, it's an interactive shell (based on the docs, it seems that checking whether or not PS1 is set is also a way to see if it's interactive) i've noticed that, for a real, virtual console login shell, the results i get are shell name: -bash (login shell) options: himBH (interactive) which brings up another question: since the initial login shell is invoked by the login program, how does the login program know which options to use for that initial shell? is there a customization file somewhere that tells "login" how to start a login, interactive bash shell? nothing in the login man page suggests this. rday -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list