jhspetersson / fselect

Find files with SQL-like queries
https://fselect.rocks
Apache License 2.0
4.02k stars 85 forks source link

* not in a lead position causes fselect to get stuck #103

Closed balta2ar closed 3 years ago

balta2ar commented 3 years ago

These work:

fselect * from .
fselect *,modified from .
fselect *,created from .

but these make fselect stuck:

fselect modified,* from .
fselect created,* from .
rickhg12hs commented 3 years ago

Just curious ... what is your motivation to use *?

balta2ar commented 3 years ago

I just wanted to get an overview of what columns are available, then I wanted to find 5 most recently modified files. I was surprised "modified" or "created" weren't part of "*" output -- I think "ls" adds some date to the output in the long mode, -- so I tried adding it and got it stuck, and I decided to report it here.

jhspetersson commented 3 years ago

That was a bug with a star-field not in the first position in the query. Now this is fixed in master, and I added modified column to the default set as well.

Thanks for creating this issue!