Hi Frank, Am Donnerstag, 05. Mär 2009, 04:15:05 +0000 schrieb Frank Shute: > On Wed, Mar 04, 2009 at 04:08:03PM +0100, Bertram Scharpf wrote: > > from "man sh": > > > > Invocation > > [...] the shell inspects > > argument 0, and if it begins with a dash (`-'), the shell is also > > consid- > > ered a login shell. [...] A login shell first reads commands from the > > files /etc/profile and then .profile in a user's home directory, if > > they > > exist. [...] > > > > I use Slim (X login manager) which calls > > > > exec /bin/sh - ~/.xinitrc > > I've never before seen the syntax you've used and I think it comes > from a misunderstanding of the manpage for sh and/or it's a bashism or > a typo.
It's the original FreeBSD port. > E.g: > > /bin/sh -c somecommand (login shell - arg 0 starts with a dash) Sorry, this doesn't call /etc/profile either. $ uname -v FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"