SUMMARY: csh alias with .openwin-init?

From: David Mostardi (david@capmkt.com)
Date: Thu Dec 30 1993 - 15:52:11 CST


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."



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:34 CDT