Re: [dev] Re: dmenu's lsx binary naming conflicts with lrzsz!

From: Bjartur Thorlacius <svartman95_AT_gmail.com>
Date: Tue, 29 Nov 2011 20:39:59 -0000

On Tue, 29 Nov 2011 20:36:07 -0000, Bjartur Thorlacius
<svartman95_AT_gmail.com> wrote:

> On Mon, 28 Nov 2011 14:43:55 -0000, Christian Neukirchen
> <chneukirchen_AT_gmail.com> wrote:
>
>> Connor Lane Smith <cls_AT_lubutu.com> writes:
>>
>>> On 28 November 2011 13:35, Christian Neukirchen
>>> <chneukirchen_AT_gmail.com> wrote:
>>>> Any reason we don't replace lsx with this?
>>>>
>>>> find -L . -maxdepth 1 -type f -perm -111
>>>
>>> POSIX compatibility.
>>
>> All supported except for -maxdepth, but you can use:
>>
>> find -L . -type d \! -name . -prune -o -type f -perm -111 -print
>>
> Reading this more closely yet sans documentation, should a '!' -name ..
> not be inserted into this monster of argument list, or better yet, the
> \! -name . be removed and find allowed to simply rely on -type f? Or
> does -type depend on stat??
>
As suspected, documentation was needed. -o is equivalent to the
nonstandard -or. Relying on -type f would of course not work.

-- 
-,Bjartur
Received on Tue Nov 29 2011 - 21:39:59 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 29 2011 - 21:48:05 CET