Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Question about enviroment variable.

$
0
0
Hi Gurus,

I am stuck on below issue.
in my .profile. I have two variable:
Code:


x=abc$123
t=xyz$

when running env command, I got below:
Code:


x=abc
t=xyz$

my OS is SunOS 5.10 sun4v sparc SUNW,SPARC-Enterprise-T5220

I am wondering why t=xyz$ shows exactly value?

I try below:
Code:


par1=xyz
export par1
par2=123$par1
export par2

I got below:
Code:


par1=xyz
par2=123xyz.

thanks in advance

Viewing all articles
Browse latest Browse all 16232

Trending Articles