Page 1 of 1

Alias argument with =

Posted: 14 Nov 2015 14:36
by nerdweed
Not exactly a bug, but something undesired is happening
I have an alias defined as

Code: Select all

@q=text runret("cmd /c sqlite3.exe Wally.db ""<@1>""", $PIC_HOME);
The below command works fine

Code: Select all

@q "select count(*) from vw_images where rating > 3"
However; if I change the > to =, it throws an error

Code: Select all

@q "select count(*) from vw_images where rating = 3"
---------------------------
XYplorer
---------------------------
Spaces and slashes are not allowed in alias names.
---------------------------
OK
---------------------------
It appears, that is considering that I am redefining an alias with the name

Code: Select all

q "select count(*) from vw_images where rating
Probably, quotes shouldn't be considered valid for alias names. Or alternatively, if there is a space it should try to use the alias name before the space.

Re: Alias argument with =

Posted: 14 Nov 2015 15:48
by admin
Good find! Fix comes.

Re: Alias argument with =

Posted: 15 Nov 2015 11:08
by nerdweed
Thanks. Works well when quoted now.