> + tmpdir=$(mktemp -d ${TMPDIR:-/tmp}/locales.XXXXXXXXXX) Or just use -t as documented in mktemp(1). Bastian -- It is more rational to sacrifice one life than six. -- Spock, "The Galileo Seven", stardate 2822.3