Problems when specifying -maxdepth

hancooper via Bug reports for the GNU find utilities <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <tAPsfL9N_dGtgQLpZgB6UhmCE1sI2z8ZGgGd7xaCLah17fu9OlRRvyJ2UQj3fzFBJa0ZMnJYeeNw3foLmzUQJyocvwpfUNnrR00E21nLz04=@protonmail.com>
I am getting complaints by find when using

dlc=$( find $2 -type d -maxdepth $3 | tr "\n" " " )

find ./01cuneus -type d -maxdepth 2 | tr "\n" " "
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.