I'm still learning, but, don't you need an 'export' somewhere so that TMPDIR stays set?
I agree that scripts run as root that pass a convolutedly evaluated perameter to rm are scary. >Hmm... you're right; my mistake. Had a look at the script that did this - >I believe the problem was that $TMPDIR wasn't being set correctly >(I used a secondary script and TMPDIR=`./echoTMPDIR`, which didn't work on >that occasion) - ending up with 'rm -f /*'.
