Pare che -maxdepth debba stare davanti alle altre opzioni...
prova a sostituire quel find con questo:
codice:
find $HOME -maxdepth 1 -name ".kde*" -type d
Comunque il vecchio find funzionava allo stesso modo, l'warning che dava non comprometteva il risultato:
codice:
$ find $HOME -name ".kde*" -type d -maxdepth 1
find: warning: you have specified the -maxdepth option after a non-option argument -name, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
/home/dev/.kde
$ find $HOME -maxdepth 1 -name ".kde*" -type d
/home/dev/.kde