Opened 7 months ago
Last modified 7 months ago
#18672 new bug
different query results depending on the order of the expression — at Initial Version
Reported by: | augiedoggie | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Storage Kit | Version: | R1/beta4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
queries in Haiku seem to require the name
part of the expression to come first. For example, this works:
query -a '((name=="**")&&(BEOS:TYPE=="application/x-vnd.Be-elfexecutable"))'
but this doesn't:
query -a '((BEOS:TYPE=="application/x-vnd.Be-elfexecutable")&&(name="**")'
I came across this problem while working on some of the old BeSampleCode at HaikuArchives. I don't have BeOS installed to test but I assume the old code worked.
On a related note, I thought you could execute a query in BeOS without a name but that doesn't seem to work. Maybe I'm not remembering it properly. Like:
query -a '(BEOS:TYPE=="application/x-vnd.Be-elfexecutable")'
Note:
See TracTickets
for help on using tickets.