cancel
Showing results for 
Search instead for 
Did you mean: 

Re: different result when you run q by putting #! head or q command

Aaron_Davies
New Contributor

shouldn't matter either, there's an overload of -1! that translates
that

q)-1!"\t1}"
" 1}"

you can see it being called by the script loader if you fiddle around
in a debug shell caused by a bad code file

$ echo ']'>bar.q
$ q bar.q
KDB+ 2.6 2010.12.17 Copyright (C) 1993-2010 Kx Systems
l64/

k){0N!x y}
']
@
"q"
,"]"
q))'
k){x:("#!"~2#*x)_x:-1!'x;y{0N!x
y}'"\n"/:'(&~^*:'x)_x@:&(#:'x)&~"/"=*:'x@:&~|':(b?-1)#b:+\-/x~\:/:+,"/\
\";}
'
^^^^
0 REPLIES 0