Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Repeat last statement in the Q shell

Tags:

q-lang

kdb+

The Q programming language has an associated shell. How does one access his last input in the shell? For example, if I type:

q) a:45

in the next prompt q), I would like to recover a:45 by hitting the up arrow (as in bash), however, this does not work in the Q console. What does work?

like image 642
Riemann1337 Avatar asked Jul 09 '26 08:07

Riemann1337


1 Answers

On Linux or OS X you should use rlwrap. It is included in most Linux package repositories. On OS X I installed rlwrap via MacPorts, which requires Xcode to be installed.

On Windows the q console comes with this functionality and you don't need to install anything.

like image 125
mollmerx Avatar answered Jul 11 '26 04:07

mollmerx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!