konsole won't set variables
Hey guys,
I'm not sure if this is a real problem or I just don't know what I'm doing. I'm trying to set a string variable in the shell. (I'm under SUSE) I'm doing this: seib@linux-fhrs:~> set name = some_name seib@linux-fhrs:~> echo $name seib@linux-fhrs:~> $?name If '0name' is not typo you can use command-not-found to lookup the package that contains it, like this: cnf 0name seib@linux-fhrs:~> I also looked in $ env and 'name' wasn't in the list. What am I doing wrong? Also, how do you copy text from the konsole? |
this syntax is valid for tcsh. Probably you are using bash, execute echo $0 to check it.
|
Yes, I am executing bash.
seib@linux-fhrs:~> echo $0 /bin/bash seib@linux-fhrs:~> That's why all my scripts start with #!/bin/bash . Is it possible to set variables in bash, and what is the appropriate syntax? |
Ha, I went googling and solved my problem. Thanks anyway (:
|
|
Quote:
|
All times are GMT -5. The time now is 12:24 AM. |