Note that the issue with the 'cc' case is that (i) you're not
providing any input files and (ii) an error message is printed to
stderr but not displayed to the IDE terminal. Consider the same call
in jconsole,

    2!:0'cc'
  clang: error: no input files
  |interface error
  |       2!:0'cc'

(Note the second line.)

This should work,

  '/tmp/foo.c'fwrites~'#include<stdio.h>',LF,'int
main(void){printf("C.\n");return 0;}'
  2!:0'cc /tmp/foo.c'
  2!:0'./a.out'

/M

On Fri, Mar 21, 2014 at 11:16 AM, kamakura <[email protected]> wrote:
> Hello there!
>
> I have a question about usage of 2!:0 (invoking a unix command).
> Sometimes I come across an error as follows:
>
>     2!:0'pwd'
> /Applications/j64-801/bin
>     2!:0'cc'
> |interface error
> |       2!:0'cc'
>
>
> It seems that 2!:0 does not work properly.
>
> Toshinari Kamakura
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to