SUMMARY: csh alias with .openwin-init?

From: David Mostardi (
Date: Thu Dec 30 1993 - 15:52:11 CST

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

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: (Mike Khaw)
friedel@wise.TAU.AC.IL (Friedel Loinger) (Yuval Kfir) (Andrew R. Tefft)

David Mostardi                             (510) 540-6400
Capital Market Technology, Berkeley CA

"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