Having a problem with loading multi-line functions from a script.
Any suggestions?
Sample trivial script defining 2 functions:
tom@xps ~/TxHis $ cat test.q
add:{2+3}
mult:{
?a:2;
?b:3;
?a*b
}
tom@xps ~/TxHis $ k
KDB+ 2.8 2011.12.02 Copyright (C) 1993-2011 Kx Systems
l32/ 2()core 2019MB tom xps 127.0.0.1 PLAY 2012.03.01?
q)\l test.q
k){0N!x y}
'{
@
“q”
“mult:{\n a:2;\n b:3;\n a*b”
q))\
q)add
5
q)mult
'mult
q)
OS is Gentoo linux:
tom@xps ~/TxHis $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3
tom@xps ~/TxHis $ cd /usr/local/bin
tom@xps /usr/local/bin $ ls
a+ ?j ?k
tom@xps /usr/local/bin $ ls -lrt
total 24
-rwxr-xr-x 1 root root 22513 Nov 20 18:32 a+
lrwxrwxrwx 1 root root ? ?32 Dec 12 19:25 j -> /home/tom/jgplsrc/j/bin/jconsole
lrwxrwxrwx 1 root root ? ?17 Dec 12 19:29 k -> /home/tom/q/l32/q
tom@xps /usr/local/bin $?