2011/7/3 Paul Arthur <junk+use...@flowerysong.com>:
> On 2011-07-03, Jonathan Callen <a...@gentoo.org> wrote:
>> Peter Volkov wrote:
>>>>
>>>> rm -rf "${D}/usr/share/doc/aria2"
>>>
>>> || die
>>
>> `rm -f` never fails -- if the target does not exist, then rm simply returns
>> true. (The only reason it would fail that I can think of is /bin/rm not
>> existing, in which case you have a bigger problem.)
>>
>> To test, try `rm -f /nonexistant/file; echo $?`
>
> jill-zeke /var/tmp $ rm -f testfile
> rm: cannot remove `testfile': Operation not permitted
> jill-zeke /var/tmp $ echo $?
> 1

rm -f "chuck norris"
rm: cannot remove `Chuck Norris': Operation not contemplated
echo $?
42


> jill-zeke /var/tmp $ rm -rf testdir
> rm: cannot remove `testdir/test': Permission denied
> jill-zeke /var/tmp $ echo $?
> 1
>
>
> --
> Suddenly, the door crashed open. Outside, purple prose rained down
> like a bad metaphor.
>    --SteveD on RPGnet
>
>
>

Reply via email to