[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems when specifying -maxdepth
From: |
Bernhard Voelker |
Subject: |
Re: Problems when specifying -maxdepth |
Date: |
Sat, 21 Aug 2021 09:25:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 8/20/21 7:44 PM, hancooper via Bug reports for the GNU find utilities wrote:
> find ./01cuneus -type d -maxdepth 2
> find: warning: you have specified the -maxdepth option after a non-option
> argument -type, \
> but options are not positional (-maxdepth affects tests specified before it
> as well as \
> those specified after it). Please specify options before other arguments.
Move -maxpdepth before the tests/actions:
$ find ./01cuneus -maxdepth 2 -type d
Have a mice day,
Berny