How does env variables work on bash when they are not set, in the example below, I wanted to delete a linux directory that i thought i have already set before but because i didn't set the variables, the operation is going to be executed on everything, i'd like some help to understand how does it work ? and how i can avoid that ?
ubuntu@osn:~$ sudo rm -rf $I_HOME/$I_VERSION/
rm: it is dangerous to operate recursively on ‘//’ (same as ‘/’)
rm: use --no-preserve-root to override this failsafe