Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

An extra space when using a variable

Status
Not open for further replies.

vodkadrinker

Technical User
May 16, 2002
163
GB
I am running a script that I have used on other version of Unix fine however on AIX it adds a space.

username="vodka"
echo $username/home

This the result on AIX
vodka /home

This is the resulton other Unix's
vodka/home

I'm sure is nothing to major, thanks VD
 
Which version is this? - seems to be OK with 5.2.

I want to be good, is that not enough?
 
Yep my mistake its adding the space when I create the variable.

Thanks anyway, VD
 
Too much Vodka :)

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top