[Toybox] Broken find [Was: Re: Towards find cleanup]

Rob Landley rob at landley.net
Mon Apr 15 10:26:29 PDT 2013


Forgot to cc: the list.

On 04/14/2013 03:11:07 AM, Rob Landley wrote:
> On 04/13/2013 11:06:05 AM, Felix Janda wrote:
>> 3. Operator precedence. POSIX prescribes that from highest to lowest
>> precendence we have:
>> 
>> ( )
>> !
>> -a
>> -o
>> 
>> The toybox version does not yet take this into account. For example
>> 
>> find . -type d -o -type d -a -type f
>> 
>> should print something. This third point doesn't seem
>> straightforward to implement to me.
> 
> No, but adding a test to a scripts/test/find.test would be. :)
> 
> (Yes, I regret "scripts/test disagreeing on plural/singular. I'm  
> pondering moving tests up to the top level directory, actually...)
> 
>> (Summarizingly the way how find evaluates composite expressions is
>> strongly inspired by how the C language does.)
> 
> I still have to implement bc and make $((blah)) work in toysh. (I  
> actually wrote a math expression parser in Java of all things, back  
> in 1998. The principle's fairly straightforward...)
> 
> Rob

 1366046789.0


More information about the Toybox mailing list