bash で SOME=/abc/def/hij.ext から hij を取り出すには、どうすれば ?
 ${${SOME##*/}%.ext}
と書いたら、bad substitution と怒られた。