From owner-freebsd-questions@FreeBSD.ORG Tue Jun 19 14:16:18 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B60B31065790 for ; Tue, 19 Jun 2012 14:16:18 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3DEEC8FC08 for ; Tue, 19 Jun 2012 14:16:18 +0000 (UTC) Received: by eeke49 with SMTP id e49so2302445eek.13 for ; Tue, 19 Jun 2012 07:16:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=syup6fU6IMNE/pNpACGnHA6673WuNzAKIxNQN9pBCOw=; b=pTRcRwITWaSjubZB0+WwnrDWF7rmoaDZP+5jlECgDZs4SXNWZ8DATa9Tl3ZPdaiXbO MGSntTargBIQ2WBJmykABqE3390BJUWXjYdOVmSONm9gXLHbAJaYDS1C1L3/Am5pIz2j eA19sHiDLe8TsjUGWaEMfarNri9X7sZPVckjG+vtHDzR5eKGwAslSdU5S1E4t3iszlII wwuBCYeiJsXzJ/F+oZkDsVqVLnpRZV817GMP2mkQtqVlb5F4wVyWTW4Ah6CBO+dqORnY yhWpuwc4z3GfgB43Z0EG751OphWH9zKqXf0wKxooxOV6ZT/RSpBRwE2mFp62ARUmpEon nhuQ== Received: by 10.14.119.73 with SMTP id m49mr3834264eeh.187.1340115377281; Tue, 19 Jun 2012 07:16:17 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id y54sm76619132eef.10.2012.06.19.07.16.15 (version=SSLv3 cipher=OTHER); Tue, 19 Jun 2012 07:16:16 -0700 (PDT) Message-ID: <4FE089AE.5050206@my.gd> Date: Tue, 19 Jun 2012 16:16:14 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Fred Morcos References: <4FE08093.1040607@my.gd> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmkfqAvm7X1AhHtpIRQDe2szK8LNlVHnMuBd9zJkAohVr6r/h10lzGCpmJ2URSciaacn/bF Cc: questions@freebsd.org Subject: Re: rm returns 0 although directory didn't exist and wasn't deleted ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2012 14:16:18 -0000 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 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-unsubscribe@freebsd.org"