Niclas,
It does not matter now. I switched to using /bin/env or /usr/bin/env
instead of trying to discover the default shell. I just checked in
the code now.
Alex
>
> From: Niclas Hedhman <[EMAIL PROTECTED]>
> Date: 2003/12/16 Tue PM 11:23:54 EST
> To: "Avalon framework users" <[EMAIL PROTECTED]>
> Subject: Re: Problem starting Merlin on Solaris
>
> On Wednesday 17 December 2003 11:51, Alex Karasulu wrote:
> > > private static String getUnixUserShell()
> > > {
> > > return "/bin/sh";
> > > }
> > Yes Niclas it will always work but if the user added MERLIN_HOME
> > to their .bashrc in their home directory then the Env variable is
> > never picked up. That's why you need the user's default shell.
>
> ?? If the user is logged in, it has invoked the default shell already, and
> read the resource file. No?
> Then the environment is set (unless you are talking about editing the .bashrc
> after login, and not issue a new login.)
>
>
> On Solaris,
> bash-2.03$ /bin/sh -c "echo $NICLAS_TEST"
> something
>
> I have set the NICLAS_TEST in my .bash_profile to "something".
>
> bash-2.03$ ps -ef | grep nhed
> nhedhman 13959 13901 0 19:39:24 pts/3 0:00 -bash
> nhedhman 17374 17372 0 20:12:17 pts/1 0:00 -bash
> nhedhman 17445 17374 0 20:21:50 pts/1 0:00 grep nhed
>
> shows that no other shell has been invoked.
>
> So where does my logic break down?
>
> Niclas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]