rm: do not set a variable twice without intermediate reading.