When I launch kdb with a directory, what exactly happens on start up and in what order?
The short answer is, q initializes itself, loads data, then code.
The exact sequence is as follows:
- load $QHOME/q.k
- load $QINIT/q.q or $QHOME/q.q
- load tables contained in /directorypath
- load scripts /directorypath/*.q (and *.k or .s) in alphabetical order