setenv - physical name with characters \,*

May 4, 2011 at 12:40:08
Specs: Linux
I tried to do the following without success:
setenv UNITS "micrograms/m**3"

Linux's response was "echo: No match."

I found that the command does not take"/" or "*" as they are. How to do so ?

Thanks!

Roger


See More: setenv - physical name with characters \,*

Report •

#1
May 4, 2011 at 14:57:59
Which Linux shell are you using? It looks like csh or tcsh - not bash.

Report •

#2
May 5, 2011 at 06:29:34
It's csh.

Report •

#3
May 5, 2011 at 11:38:36
This works on my Solaris 9 and Ubuntu 10 boxes:

#!/bin/csh

setenv UNITS "micrograms/m**3"
echo "$UNITS"


Report •

Related Solutions

#4
May 6, 2011 at 06:49:15
Your double quotes also work in my Linux csh. Thanks a trillion !

Report •

#5
May 6, 2011 at 07:01:45
You're welcome. Without the quotes, the shell treasts the * character as a shell pattern. This mean looking for any file starting with "m" and ending with "3" in the micrograms directory:

micrograms/m**3

If this file does not exist, you get this error.



Report •

Ask Question