Newsgroups: comp.lang.apl
Path: watmath!watserv2.uwaterloo.ca!torn!cs.utexas.edu!uwm.edu!rpi!utcsri!geac!itcyyz!yrloc!hui
From: hui@yrloc.ipsa.reuter.COM (Roger Hui)
Subject: Re: J
Message-ID: <1992Sep24.014306.1209@yrloc.ipsa.reuter.COM>
Organization: Iverson Software Inc.
References: <WEG.92Sep21143745@mace.cc.purdue.edu>
Date: Thu, 24 Sep 92 01:43:06 GMT
Lines: 17

Eythan Weg writes:
> Is it possible to avoid reading profile.js or read it silently or read
> another script instead or variations thereof upon loading?
> Secondly, what is the expected behavior of (1!:1) <'/dev/tty'?
 
profile.js is executed on start-up only if it exists in the current
directory; to avoid having it read, avoid having a file so named.
To execute another file on start-up, silently or otherwise, insert a
line in profile.js referring to it, using 0!:2 or 0!:3 as appropriate.
 
1!:1<'/dev/tty' , as with reads of other files, first determines the size
of the file, then reads that many of the file and returns a string result.
An interface error is signalled on systems where /dev/tty is not a valid file.

------------------------------------
Roger Hui, Iverson Software Inc., 33 Major Street, Toronto, Ontario  M5S 2K9
Phone: (416) 925 6096;  Fax: (416) 488 7559
