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
|