I always assumed -f would only force removal, not modify the exit code.

No bug then, working as intended, all good.



Cheers

On 6/19/12 3:43 PM, Fred Morcos wrote:
> You used -f which means rm will not complain if a file or directory
> cannot be deleted (or does not exist in the first place).
> 
> On Tue, Jun 19, 2012 at 3:37 PM, Damien Fleuriot <m...@my.gd> wrote:
>> I've stumbled upon this *so weird* behaviour.
>>
>>
>>
>> # ls -la /var/tmp/stunnel/
>> ls: /var/tmp/stunnel/: No such file or directory
>>
>>                                                               # rm -Rf
>> /var/tmp/stunnel/
>>
>>                                                               # echo $?
>> 0
>>
>>
>>
>> Anyone knows if that's intended ?
>>
>> FreeBSD pf2.[snip].com 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Jun 19
>> 10:45:31 CEST 2012
>>
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to