Help with Export PS1 I think :-0

I am 100% new to Unix and trying to learn.
This is my first time even touching a script in Unix.

We have the following variable script that I am trying to run....

##################################
###### variable test###
##################################
Hostname=`hostname`
export PS1='${Hostname}:${PWD}>'
OMNIHOME=/lcl/prd/apps/Tivoli/netcool/omnibus
export OMNIHOME
NCHOME=/lcl/prd/apps/Tivoli/netcool
export NCHOME
NETCOOL_LICENSE_FILE=27000@seville
export NETCOOL_LICENSE_FILE
JAVA_HOME=/usr/java
export JAVA_HOME
PATH=$PATH:$NCHOME/omnibus/bin
export PATH
LD_LIBRARY_PATH=$NCHOME/platform/solaris2/lib; export LD_LIBRARY_PATH
NC_RULES_HOME=$NCHOME/common/rules; export NC_RULES_HOME
stty erase ^H
EDITOR=vi

Now if I try to excute this by the following....
./logintest.sh

It just goes right back to a bash-3.00$ prompt and does nothing.

If I try it this way....

sh logintest.sh I get this....

logintest.sh: PS1=${Hostname}:${PWD}>: is not an identifier

Counld anybody please tell me what I am doing wrong? I am really lost here.

Thanks in advance!

I have it in my .profile of my home directory like this:
PS1='${LOGIN} ${PWD}> '

I don't export it.

I gave that a try but then got this in return...

logintest.sh: H: not found
bash-3.00$ stty: : I/O error

So I don't think thats it but thanks for trying to help :slight_smile:

Any other ideas?

Thanks in advance.

I'm just curious, are you a cable employee?