[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Has a Debian developer ever unintentionally wiped out user files like Apple?



On Mon, 2001-11-05 at 17:28, Branden Robinson wrote:
> On Mon, Nov 05, 2001 at 12:44:35AM +0100, Wichert Akkerman wrote:
> > I'm not aware of anyone being hit by it though lukily. Filenames
> > with spaces in them seem to be quite rare.
> 
> I tend to avoid this problem by being obsessive about quoting shell
> variables in scripts unless their contents are completely under my
> control.
> 
> Sometimes this obsession causes other problems; see the closed serious
> bug list against xfree86-common...

Yes we all know about that error Branden :-) (Nice to know the reason
why it arose).

To answer Ben, yes I think it was a directory containing the install
files.

Wouldn't it also be safer to routinely split the deletion into two
steps?: First change into the appropriate directory and then "rm -rf
iTunes.app". Because the actual rm is then hard coded it would be highly
unlikely to ever lose user data (the change directory would have to fail
and the user would also have to have another directory called
"iTunes.app").

Regards,
Adam



Reply to: