Csh /Tcsh Issue
Ben Eisenbraun
bene-Gk2boCrsRs1AfugRpC6u6w at public.gmane.org
Tue Dec 30 23:58:02 EST 2008
On Tue, Dec 30, 2008 at 10:56:11PM -0500, 100ji wrote:
> I have an issue with csh and environment variables. In csh/tcsh I can only
> use environment variables when I quote them. For example see the example
> below:
>
> providence% setenv CLASSPATH
> "/u/suman/installs/aspectj1.6/lib/:/u/suman/installs/lib/java/*.jar:."
> providence% echo $CLASSPATH
> echo: No match.
That "echo: No match" is your shell telling you that there's no match for
/u/suman/installs/lib/java/*.jar.
That's the reason you have to quote them in order to set them as well.
[cider:~] bene% setenv FOO *.txt
*.txt: No match.
[cider:~] bene% setenv FOO "*.txt"
[cider:~] bene% echo $FOO
echo: No match.
[cider:~] bene% touch file.txt
[cider:~] bene% setenv FOO *.txt
[cider:~] bene% echo $FOO
file.txt
I suspect your environment variables will work fine without the shell
wildcards in them.
BTW, the CLASSPATH can usually point to a directory of .jar files without
explicitly naming them, although this may be dependent on which version of
java you're using.
-ben
--
il y a un instant, entre la quinzieme et la seizieme gorgee de champagne,
ou tout homme est un aristocrate. <amelie nothomb>
More information about the Discuss
mailing list