1752733 Members
5415 Online
108789 Solutions
New Discussion юеВ

Re: setting environment

 
SOLVED
Go to solution
James R. Ferguson
Acclaimed Contributor

Re: setting environment

Hi (again) Salman:

> Thank you very much all. It works same like Linux :)

Yes, indeed, it would work the same as Linux, or rather, Linux would work the same as Unix in the regard :-)

I see that you are new to our community. Welcome. If you are satisfied with the help you received, please read:

http://forums13.itrc.hp.com/service/forums/helptips.do?#28

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: setting environment

>script name is "env".

This command is reserved and you absolutely should NOT use it.

>What is the problem and how to resolve it?

You are probably invoking /usr/bin/env.

>please make a correction, my name is SALMAN, not Shalom

Steven is giving you (and every reply) a polite well wishing greeting:
http://en.wikipedia.org/wiki/Shalom

>I followed your instructions but problem and error message is same

Of course, since that wasn't your real problem, just a good practice.

Note if you are always going to source this file, you don't need #!/sbin/sh and you shouldn't make the file executable.
Salman Ahmed Qureshi
Frequent Advisor

Re: setting environment

Hi Dennis

>please make a correction, my name is SALMAN, not Shalom

>Steven is giving you (and every reply) a polite well wishing greeting:
>http://en.wikipedia.org/wiki/Shalom


Oh i am really sorry. I thought he is misspelling my name because it seemd like my own name.
My appologies Mr Steven

Salman
Arturo Galbiati
Esteemed Contributor

Re: setting environment

Hi Salman,
end is a reserved word, chnage the name of your script to my_env.
HTH,
Art