On 2021-04-06 18:46, Jose Mario Quintana wrote:
   $ j -js "exit echo 2 [ (fork&cd bind '') '' [ load
'data/jd/server/fork'"
   2
   2

It seems to me that the above construction works for the UNIX family but
not for Windows; at least, I managed to run a version of the above in a
very basic BusyBox system but I could not figure out how to run a
version of it in Windows 10.  Am I wrong?  (Admittedly, my knowledge
regarding this matter is very limited.)


You're not wrong. The '$' there signifies a unix shell's prompt. That
CLI example also assumes that 'j' in your environment starts the right
binary. The point was just to show that the J works at all. The other
point was to closely imitate the C in using fork(), which probably
doesn't work as readily on windows. system/main/task seems to use
CreateProcessW instead.

Looking again data/jd/server/fork, it's not really intended to be used
as a library. So a better sentence is

  exit echo 2 [ (((unxlib'c'),' fork >x')&cd bind '') ''
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to