As others have mentioned, an error in the Unix shell goes to standard output. I
find it very useful to use a verb "host" which is quite helpful in letting one
know what happened - e.g.
host
[: 2!:0 '(' , ' || true)' ,~ ]
host 'cc'
clang: error: no input files
On 2014 Mar 21, at 06:36 , kamakura <[email protected]> wrote:
> Hi Raul
>
> Thanks. The following is just a test.
>
> terminal window
> mb17-2:~ kamakura$ cat >test1
> abc
> mb17-2:~ kamakura$ pwd
> /Users/kamakura
> mb17-2:~ kamakura$ cat >test2
> abcいい天気
>
> ------------
> J801
>
> 2!:0 'less /Users/kamakura/test1'
> abc
>
> 2!:0 'less /Users/kamakura/test2'
> |interface error
> | 2!:0'less /Users/kamakura/test2'
> 2!:0 'less /Users/kamakura/test1; echo $?'
> 0
>
> 2!:0 'less /Users/kamakura/test2; echo $?'
> 1
>
> Toshinari
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm