HP3000-L Archives

March 1995, Week 5

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:
"Jeff Vance (by way of Jim Wowchuk <[log in to unmask]>)" <[log in to unmask]>
Reply To:
Jeff Vance (by way of Jim Wowchuk <[log in to unmask]>)
Date:
Tue, 28 Mar 1995 15:10:35 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
Jim Wowchuk wrote:
>Is there a list somewhere of commands that don't respect the redirectors?
 
Not that I am aware of, but I looked in the code and the following commads
are exempt from CIOR:
  if, elseif, setvar, calc, while, comment, setjcw, tell, tellop, warn, remote
 
The reasoning is that, when CIOR was 1st introduced there was a concern that
we would inadvertantly overwrite an important file if we mistook the '>' as
output redirection when it was really there for some other purpose.  This was
our backwards compatibility thinking combined with the risk of maybe destroying
data.  Based on this issue we decided to make the output file TEMP.  Also,
where it was likely that the '<', '>', '>>' symbols were not meant to
indicate redirection, or the command doesn't use i/o (except for error
reporting), we prevented CIOR from being done.
 
The example of ":tellop <file" wouldn't have worked anyway since the tellop
command does not take input from $stdin. We would have had to change the
implementation of tellop to cause that to happen.
 
Jeff Vance, MPE Lab

ATOM RSS1 RSS2