[Intel-gfx] [PATCH 5/8] dim: avoid errors with rm $foo/ expanding to /

Jani Nikula jani.nikula at intel.com
Wed Mar 22 14:03:28 UTC 2017


On Wed, 22 Mar 2017, David Weinehall <david.weinehall at linux.intel.com> wrote:
> On Wed, Mar 22, 2017 at 12:53:24PM +0200, Jani Nikula wrote:
>> On Wed, 22 Mar 2017, David Weinehall <david.weinehall at linux.intel.com> wrote:
>> > rm -rf / woes can be remedied by always passing "--preserve-root" to rm
>> > (I believe that this is the default already though).
>> 
>> That doesn't help with 'rm -rf /*' though.
>
> Hmmm, but how would you end up with that if it does /$foo and $foo="" or
> unset?

There's a 'rm -rf $foo/*'

-- 
Jani Nikula, Intel Open Source Technology Center


More information about the Intel-gfx mailing list