Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Environment Variable Question

1 view
Skip to first unread message

Joseph Hesse

unread,
Oct 20, 2008, 12:37:59 PM10/20/08
to
Hi,

When I run:
$ env | grep PS1
I get no output which means the environment variable PS1 is not in my
environment list.

However, when I run:
$ echo $PS1
I do get the value of the PS1 variable.

Why is this?

Thank you,
Joe

lrc

unread,
Dec 12, 2008, 3:06:35 AM12/12/08
to


Because your PS1 variable is not an environment variable,if you use
$export PS1=xxxx
$env | grep PS1
will get it!

0 new messages