Re: Bash woes
Re: Bash woes
- Subject: Re: Bash woes
- From: P T Withington <email@hidden>
- Date: Thu, 2 Sep 2004 08:59:44 -0400
Date: Fri, 27 Aug 2004 13:25:29 -0500
From: Eugene Lee <email@hidden>
On Fri, Aug 27, 2004 at 12:30:41PM -0400, P T Withington wrote:
:
: Since I did not know about ~/.MacOSX/environment.plist, I did the
: following in my .xinitrc to make sure the programs I used were
launched
: in a proper environment:
:
: # start some nice programs
: xterm -geometry 80x50+0+0 -name login -e bash -login &
: bash -login -c "exec emacs" &
:
: Providing the -login option to bash ensures it will act as a login
: shell and read the appropriate profile/rc files. It is my experience
: in general that X clients _do_not_ by default launch in a login
: environment.
Your experience matches the documented behavior.
But your xterm invocation is a bit hairy. How about this?
xterm -geometry 80x50+0+0 -title login +ls
Didn't know about that option, but didn't you mean -ls? The doc says:
-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).
Note that this is incompatible with -e, since the login
program
does not provide a way to specify the command to run in
the new
shell. If you specify both, xterm uses -ls.
+ls This option indicates that the shell that is started
should not
be a login shell (i.e. it will be a normal ``subshell'').
and I _do_ want a login shell.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.