from "man sh":
[...] When first starting, the shell inspects
argument 0, and if it begins with a dash (`-'), the shell is also consid-
ered a login shell. This is normally done automatically by the system
when the user first logs in. A login shell first reads commands from the
files /etc/profile and then .profile in a user's home directory, if they
I use Slim (X login manager) which calls
exec /bin/sh - ~/.xinitrc
I first wondered why none of my commands in "/etc/profile" and
"~/.profile" got executed. Finally, I modified
"/usr/src/bin/sh/main.c" to trace what files are read, recompiled
the "sh" command and: the only file that is executed is "~/.shrc".
I just cannot believe that FreeBSD has such a severe bug. What is
going wrong here?
Thanks in advance,
email@example.com mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"