NB. console library
NB.
NB. this script is loaded when J is run from the console.

18!:4 <'z'

exit=: 2!:55
getenv=: 2!:5
echo=: 1!:2&2
stdout=: 1!:2&4
stderr=: 1!:2&5
stdin=: 1!:1@3: :. stdout

NB. =========================================================
NB. jhelp
jhelp=: 3 : 0
NB. for example, jhelp 'netscape'
if. ''-:y. do. 'for example, jhelp ''netscape''' return. end.
2!:1 y.,' ',jpath '~system/extras/help/index.htm &'
)

NB. =========================================================
NB. wd substitutes
wd=: 0 0&$@echo
wdinfo=: wd
