> From: bill lam > > On Fri, 03 Jul 2009, Sherlock Ric wrote: > > Perhaps with some minor changes to task.ijs cross-platform use of > > the verbs fork, spawn, shell and launch can replace various > > handlings > > IMO using 2!:0 is also interested in its result returned in stdout. > neither fork or spawn is a very good name for such purpose. Instead > the original name 'host' is more neutral between result and side > effect. 'shell' is also acceptable as '2!:0 cmd' is actually run by > jconsole as 'sh -c cmd >/tmp/somefile' > > fork or spawn are synonyms although window does not use the term fork, > therefore I favour the original name for 2!:0 and 2!:1 in DOJ.
I didn't mean to imply that I thought that the name for 2!:0 should be changed. I agree that both 'host' & 'shell' are good names for it. 'shell' is currently defined in task.ijs and it doesn't conflict with 'host' so I don't see a problem there. 'shell' in task.ijs is essentially just a cover for 'spawn', hence the changes I proposed to the verb 'spawn', will also affect 'shell', so for Linux at least they will be synonyms. I don't have any philosophical problems with the DOJ names. It just seems to me that in order to resolve the current conflict it is more practical to change a label/name of convenience in the dictionary (no statements of function need to be changed) than it is to rename the verbs in task.ijs thus potentially breaking existing code. However as far as I'm concerned any solution that clears up the confusion without causing additional problems is fine! ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
