Juggle Home -
Bits'n'Pieces -
Feature Hitlist -
Problem Reports -
Mailing lists -
The J Repository -
References
+-------------------+
| 9!:12'' |
|5 |
+-------------------+
Invoking the editor from J
How do edit a script while you are in a J session under Unix?
Use these two tiny helpers:
EDITOR_j_=: 'vi'
NB. edit files: e 'foo.ijs' later just: e''
e_z_ =: verb define
0 e_z_ y.
:
if. #y. do.
LAST_FILE_j_=:y.
end.
2!:1 EDITOR_j_,' ',LAST_FILE_j_
if. x. do.
The same code as individual script.
+-------------------+
| 9!:12'' |
|5 |
+-------------------+
Juggle Home -
Bits'n'Pieces -
Feature Hitlist -
Problem Reports -
Mailing lists -
The J Repository -
References