NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /bin/sh command history in NetBSD/i386



On Wed, 1 Feb 2017, the wise Robert Elz wrote:

/etc/profile and .profile are read only in login shells.  By default an xterm
won't start its shell that way - you need the -ls option to the xterm, or
have "xterm*loginShell: true" in your X resources.


...

How are you actually connecting/logging in ?

...

If you're using a display managed (xdm or similar) then you'll need to
arrange to either set ENV in its config file (somehow) or set up the
default resources so that the loginShell resource gets set (xterms don't
have a menu entry for this one - it would be useless, the shell gets
started before you would get a chance to use it).

I'm logging in with xdm. Adding "xterm*loginShell: true" in .Xdefaults solved the problem.

So thanks for all the help!

Regards,
Marco
--
HOW YOU CAN TELL THAT IT'S GOING TO BE A ROTTEN DAY:
	#32: You call your answering service and they've never heard of
	     you.


Home | Main Index | Thread Index | Old Index