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,
-
not set
export PS1=’${PWD}] ’
-
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.
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,
-
not set
export PS1=’${PWD}] ’
-
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.
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,
-
not set
export PS1=’${PWD}] ’
-
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.