On Oct 22, 21:04, Sven Utcke wrote:
} Subject: Re: modules: shell portabililty?
>
> > For example, the way one sets the prompt is different in csh-type
> > shells and in sh-type shells. So is the quoting behavior. This means
> > that I end up saying stuff like this in my modulefiles:
> >
> > if { [ module-info shelltype ] == "csh" } {
> > # csh (and tcsh etc) alias generation
> > } else {
> > # sh (and ksh and bash etc) alias / function generation
> > }
>
> Whats wrong with set-alias? from the man-page (this is
> man modulefile):
> I have admittedly never tried it, but it sounds good, doesn't it?
I have, set-alias works. I think his problem is not alias
generation, but quoting and prompt setting. I suppose we could
add a "set-prompt" Tcl command, but quoting is always going to be
somewhat problematic - C shell quoting is often rather bizarre.
--
Bob Myers InteleNet Communications, Inc.
Email: bo...@In... 18101 Von Karman Avenue, Suite 550
Phone: 714-851-8250 x227 Irvine, CA 92612
Fax: 714-851-1088 http://www.intelenet.net/
|