Csh /Tcsh Issue

100ji itz100ji-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Wed Dec 31 00:20:06 EST 2008


Thanks Ben.

I am just kicking myself now. I thought that that might be the case, but
somehow promptly forgot about it thinking about some other reason.

-S-

On Tue, Dec 30, 2008 at 11:58 PM, Ben Eisenbraun <bene-Gk2boCrsRs1AfugRpC6u6w at public.gmane.org> wrote:

> 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