This is fixed:
$ snap run --shell test-snapd-tools.success $ echo $SNAP /snap/test-snapd-tools/3 $ echo $TMPDIR /tmp
This is fixed:
$ snap run --shell test-snapd- tools.success snapd-tools/ 3
$ echo $SNAP
/snap/test-
$ echo $TMPDIR
/tmp