phlogin problem??

Hello,

Though some values written in “.profile” file at my home directory are set
when I log on QNX system through just console, those values are not set When
I log on through Photon Windows.

And an interesting thing is that those values not set are “some” not “all”.
For example, if I write PS1 value in .profile like below,

  1. not set
    export PS1=’${PWD}] ’

  2. set properly
    export PS1=’[${HOME##*/}@hostname:${PWD}] ’

Each one shows a diffrent result with phlogin.
But both shows the same result with just login.

What’s wrong with this??
Any Idea?

Thanks.


Hye Jin Soang <hjsoang@rtsolutions.co.kr>
Research Engineer, RTSolutions Inc.
Tel: +82-2-583-4885 Fax: +82-2-583-6885
www.rtsolutions.co.kr www.qnx.co.kr

The problem seems to relate to root(id = 0) shell and PS1’s value.

After login as “root”, then if I fork a new shell (just type “sh” or run
some shell script),
the shell doesn’t have the PS1 value (export PS1=’$PWD] ') that I exported
in .profile before the fork. The new shell shows just “#”.

If I export PS1 as '[${HOME##*/}@hostname:${PWD}] ', it’s okay when I fork
a new shell.

It seems to be the same apperance on ksh and bash.
What’s wrong?

“redcloak” <redcloak@rtsolutions.co.kr> wrote in message
news:bocafc$h0r$1@nntp.qnx.com

Hello,

Though some values written in “.profile” file at my home directory are set
when I log on QNX system through just console, those values are not set
When
I log on through Photon Windows.

And an interesting thing is that those values not set are “some” not
“all”.
For example, if I write PS1 value in .profile like below,

  1. not set
    export PS1=’${PWD}] ’

  2. set properly
    export PS1=’[${HOME##*/}@hostname:${PWD}] ’

Each one shows a diffrent result with phlogin.
But both shows the same result with just login.

What’s wrong with this??
Any Idea?

Thanks.


Hye Jin Soang <> hjsoang@rtsolutions.co.kr
Research Engineer, RTSolutions Inc.
Tel: +82-2-583-4885 Fax: +82-2-583-6885
www.rtsolutions.co.kr > > www.qnx.co.kr

PS1 is not normally exported, it is normally set in the .kshrc file (or
whatever other file you have $ENV pointing to).

Rob Rutherford

On Thu, 6 Nov 2003 20:07:01 +0900, redcloak wrote:

The problem seems to relate to root(id = 0) shell and PS1’s value.

After login as “root”, then if I fork a new shell (just type “sh” or run
some shell script),
the shell doesn’t have the PS1 value (export PS1=’$PWD] ') that I exported
in .profile before the fork. The new shell shows just “#”.

If I export PS1 as '[${HOME##*/}@hostname:${PWD}] ', it’s okay when I fork
a new shell.

It seems to be the same apperance on ksh and bash.
What’s wrong?

“redcloak” <> redcloak@rtsolutions.co.kr> > wrote in message
news:bocafc$h0r$> 1@nntp.qnx.com> …
Hello,

Though some values written in “.profile” file at my home directory are set
when I log on QNX system through just console, those values are not set
When
I log on through Photon Windows.

And an interesting thing is that those values not set are “some” not
“all”.
For example, if I write PS1 value in .profile like below,

  1. not set
    export PS1=’${PWD}] ’

  2. set properly
    export PS1=’[${HOME##*/}@hostname:${PWD}] ’

Each one shows a diffrent result with phlogin.
But both shows the same result with just login.

What’s wrong with this??
Any Idea?

Thanks.


Hye Jin Soang <> hjsoang@rtsolutions.co.kr
Research Engineer, RTSolutions Inc.
Tel: +82-2-583-4885 Fax: +82-2-583-6885
www.rtsolutions.co.kr > > www.qnx.co.kr