xterm starts an interactive shell. But you can also configure it to start an interactive login-shell.
That means that with starting an
xterm you get the same kind of shell like logging in via ssh/virtual console/su.
What are the advantages/disadvantages configuring a login-shell in xterm?
I can think of:
lastetc. report as many users as
xterm's are open. (advantage?)
/etc/profile.dwhen started as login-shell
zshhas similar files which it reads when started as login-shell - but on my system they are empty by default
xterm man page section:
-ls This option indicates that the shell that is started in the xterm window will be a login shell (i.e., the first character of argv will be a dash, indicating to the shell that it should read the user's .login or .profile).
There is also a resource:
loginShell (class LoginShell) Specifies whether or not the shell to be run in the window should be started as a login shell. The default is “false.”