csh alias with .openwin-init?

ORIGINAL QUESTION:

---------------------------------------------

I'd like to be able to use my csh aliases in the .openwin* files.

For example, say I have this csh alias:

        alias window1 'cmdtool -Wp 0 450 -Ws 980 415 -WP 1072 114 -Wt ...

Then, in .openwin-init I'd say:

        toolwait window1

And in .openwin-menu I'd say

        "Window 1" window1

---------------------------------------------

SOLUTION:

The .openwin-init file is written in 'sh', so 'csh' aliases won't work.

The easiest solution is to use environment variables:

        setenv WINDOW1 'cmdtool .....'

and then in .openwin-init:

        toolwait $WINDOW1

THANKS TO:

khaw@parcplace.com (Mike Khaw)

friedel@wise.TAU.AC.IL (Friedel Loinger)

kfir@sparc1a.Indigo.HellNet.org (Yuval Kfir)

teffta@cs690-3.erie.ge.com (Andrew R. Tefft)


--
David Mostardi (510) 540-6400
Capital Market Technology, Berkeley CA david@capmkt.com

"You knew the job was dangerous when you took it, Fred."

[2038 byte] By [CodeProf.com] at [2007-12-25 8:37:00]