for d in $(ls -1 /usr/share); do (/bin/sh -c "ls /usr/share/$d/*" &>/dev/null) || echo $d; done This gives a list of folders that `ls /usr/share/<folder>/*` fails under dash. So /usr/share/docutils is just one of them.