#319607 find warning while removing empty directories in cleanlinks

Package:
xutils-dev
Source:
xutils-dev
Description:
X Window System utility programs for development
Submitter:
Jose Antonio
Date:
2026-08-13 17:37:03 UTC
Severity:
minor
Tags:
#319607#5
Date:
2005-07-23 11:39:39 UTC
From:
To:
Hi,

This warning is issued by find while removing empty directories in cleanlinks:

Removing empty directories ...
find: warning: you have specified the -depth option after a non-option argument
-type, but options are not positional (-depth affects tests specified before it
as well as those specified after it).  Please specify options before other arguments.

This can be avoided putting -depth option as the first parameter:

find . -depth -type d -empty -print -exec rmdir {} \;