stdin - Input string in J script hangs -
i write script in j linux #!
but script hang. after control-d script echoed entered value. normal come in set cursor on new line.
#!/path/jconsole =. 1!:1]3 echo exit ''
the thing (1!:1)&3
reads till "end of file". in linux, pressing ctrl-d sends eof signal.
if not you're looking for, i'm afraid there there's nil else "ugly trick"
a=. shell 'read foo; echo -n $foo'
as (1!:1)&1 works during session reason ...
input stdin readline j
No comments:
Post a Comment