Hi all,
So I'm working with a DLL for MySQL. The DLL basically returns 3 arguments plus data...so this:
echo 4 -a $dll(mysql.dll,labels,0)
...works without problem... for example it returns
And doing this one works as well:
echo 4 -a $gettok($dll(mysql.dll,labels,0),4,32)
which returns 0 when sticking with the above example.
I'm trying to set an alias...
alias mysql_status { return $gettok($dll(mysql.dll,labels,0),4,32) }
For some reason this returns a 1...all the time.
And when I try to do it with the Rows property of the DLL (instead of labels) ...it returns blank...even though it works perfectly using //echo -a $gettok() in the editbox.
Am I using the return command incorrectly?
Could the DLL be returning something different if it's called inside an alias? I think I'm overthinking it.
Any help would be appreciated
Thanks,
AltReality