I was putting together a script and probably got a little lazy and started using /home/ instead of /usr/home in variables. I clean up temporary files at the end of the script and almost fell off my chair when the script wanted to delete from /. Can anyone shed some light on this or should I just let it go?
Rich (BB code):
variable1=/home/example1
variable2=/usr/home/example2
rm $variable1/*
= Really bad
rm $variable2/*
= Okay