From owner-freebsd-questions@FreeBSD.ORG Tue Jun 19 13:43:41 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 C9C63106567A for ; Tue, 19 Jun 2012 13:43:41 +0000 (UTC) (envelope-from fred.morcos@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8F7578FC0A for ; Tue, 19 Jun 2012 13:43:41 +0000 (UTC) Received: by obcni5 with SMTP id ni5so332209obc.13 for ; Tue, 19 Jun 2012 06:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=1TvO+q6bk1xtjrILcmWcFFFrQeyswhoP3Nr2QKx3RB4=; b=WkJ7zYoxBOkYTDykeh4POIPMK9JChXLogad85BBRzHgJZMt9KRYyErZqtT10j3OVP1 WfK4z6FYBEaLvICQHNh9bFfmNKDrmzW0XkBhAgesRfOJEY6I2XzSbx05YmsaVnvaVAlc crEjAhQE45M+eV9ORYZ8QImwFEcP1Dfx3flsIxJGYwbku3ukjwiUrOQArnwGccHeXksp yIr06JymyfORluO43ZMBmNVH2m0oPEDHT0wo6lS3jTDWWVzEAkVK8aMDQ8jcJHmc3B/w y9kI7SwQzBupi5sp5nYBQtID8mXbaNTFKmiandaXCbwHlbPLdHPeEb4oyALhLfvQ/b6y o3Ug== Received: by 10.182.207.41 with SMTP id lt9mr19839971obc.41.1340113420915; Tue, 19 Jun 2012 06:43:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.241.7 with HTTP; Tue, 19 Jun 2012 06:43:20 -0700 (PDT) In-Reply-To: <4FE08093.1040607@my.gd> References: <4FE08093.1040607@my.gd> From: Fred Morcos Date: Tue, 19 Jun 2012 15:43:20 +0200 Message-ID: To: Damien Fleuriot Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 13:43:41 -0000 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 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # rm -Rf > /var/tmp/stunnel/ > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # 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.o= rg"