HP3000-L Archives

December 1995, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Elmer <[log in to unmask]>
Reply To:
Steve Elmer <[log in to unmask]>
Date:
Fri, 8 Dec 1995 01:15:39 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
David Groves ([log in to unmask]) wrote:
: Colleagues-in-arms:
 
: Deep inside the c89 script (/etc/c89.ccg) is the procedure 'callci' which
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
Contrary to other postings discussing this question, the callci being
referenced is not the shell command.  It is a CCG function with the same
name.
 
:   result = callci(CC|";info=\"" | CCArgs | "\";parm=7", ">", 2);
                    1-----------------------------------  2--  3
 
1 is the CI command to execute.  The '|' is the concatenation operator for
strings in the CCG script language.  An occurance of "\"" is simply the
double quote character inside the string - the '\' is an escape character.
The CC and CCArgs symbols are CCG variables containing string values.
CC contains the CI command needed to invoke the C compiler.  CCArgs
contains the info string derived from the args passed to c89 (from the shell).
 
2 is apparently a request for redirection of the output of the command.
 
3 is apparently the destination file for the redirection.  I would guess
that 2 is interpreted as "stderr" and is probably the _real_ file 2 that
the interpreter process inherited from the shell (i.e. your terminal).
 
I haven't seen it, but it may be possible to redirect input and it may be
possible to have more than one redirection.  (i.e. I haven't seen any
documentation for this either)
 
If you want to see what's going on in these scripts, you should set the
environment variable ECHO to the value 1.  This will cause the c89.ccg
to print diagnostic information about what it's doing.  Give it a try
and see if it helps with your problem.
 
Steve

ATOM RSS1 RSS2