Monday, April 26, 2021

Re: .profile not being loaded (ksh) when opening shell in X

"tetrahedra@danwin1210.me" <tetrahedra@danwin1210.me> writes:

> It looks like the custom $PATH is not being passed from the login shell
> on downwards, since ~/.profile is only read by a login shell.

I just was looking into the same thing last night. The ksh shell in the
xterm didn't seem to be processing my .profile. Adding the '-ls'
argument to the xterm command resolved that.

-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[0] will be a dash, indicating to the shell that it
should read the user's .login or .profile).

Allan

No comments:

Post a Comment