strano qui su' slack curr bash 2.05b no problem financo usando type...
primo tent: sembra che interpreti male...impostare la var con singoli apici per forzare il letterale tipo='-type d'
secondo tent: recupera con ${tipo} il valore
non riusciendo a avere quell'errore vado a tentativi....
ma stai usando sh o bash ?
pierluigi
se serve al volo sto' su
telnet www.slack.z00.it 6666
entra come guest....