Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Csh /Tcsh Issue

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 

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

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.


il y a un instant, entre la quinzieme et la seizieme gorgee de champagne,
ou tout homme est un aristocrate.                        <amelie nothomb>

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /