shell `trap` and proper quoting

What’s wrong with #!/bin/bash TMPDIR=$(mktemp -d) trap 'rm -r $TMPDIR' EXIT ...