An interactive shell is just that; it reads and writes to and from a terminal (ideally one with a user at it). A login shell reads and runs login-related files like /etc/profile and ~/.profile. An interactive shell need not be a login shell and vice versa. On Aug 14, 2011 6:57 PM, "TJ Luoma" wrote: > If there any reason to prefer > > if [[ -o interactive ]] > > rather than > > if [[ -o login ]] > > ? > > Are they two ways of saying the same thing? If not, could someone > explain the difference? > > Thanks > > TjL