From owner-freebsd-ports@FreeBSD.ORG Fri May 25 13:10:04 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA525106564A for ; Fri, 25 May 2012 13:10:04 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6A1618FC14 for ; Fri, 25 May 2012 13:10:04 +0000 (UTC) Received: by eeke49 with SMTP id e49so260116eek.13 for ; Fri, 25 May 2012 06:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=/BLty+uC0quD6F5Bm2acOXQUqXYCDtKiXNHzFAxU1Bw=; b=zDBVUnlaMSaUVVRxXTcOUB64Tn3iK5tX4mm54to4a2nVp/3RcFGl2hfkLARTF0KuCp s3Vd6D29rwIKCQYcZdBTLQi2YVM/4OLZ6SZfvamJVnogOZUrqTqfcBn9VQvWVyVcjHGF tk8O75DHiz6KejIvcFcG4q2Vnsug3EqbinP20AU63jpBaqM36uRLdg2PS7eV5OWOQ4fy JghgCt1ROCnCffJwqGU9tFRHiLsffQ0tj+AdUiJT5BlX7TiDrlDlaFtDPZjmoVDi8cSL Mmbbd0KvubRybiZizox5R5cPb4DWg9SkBnTPFRmQKrTWZJS19JkT2M6+eIZ0AiNTyQyy mgSg== Received: by 10.14.47.130 with SMTP id t2mr665145eeb.21.1337951403327; Fri, 25 May 2012 06:10:03 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id v46sm7122450eef.11.2012.05.25.06.10.01 (version=SSLv3 cipher=OTHER); Fri, 25 May 2012 06:10:02 -0700 (PDT) Date: Fri, 25 May 2012 14:09:58 +0100 From: RW To: ports@freebsd.org Message-ID: <20120525140958.65863f97@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: portdowngrade and meta ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2012 13:10:04 -0000 On Thu, 24 May 2012 22:43:08 +0100 Chris Rees wrote: > For the archive-- just thought-- even though I did a typo there, > DON'T use: > > mv file file.bak && echo something > file > > at least with csh, file will be clobbered before mv gets to it.... I tried that in bash and csh and it worked correctly in both. e.g. in csh: %echo nothing > foo %mv foo bar && echo something > foo %cat foo something %cat bar nothing If a shell supports short-circuiting then mv must complete before echo can start, so I don't see how it can fail unless the shell opens the file before it runs mv. Are you perhaps mixing this up with what happens with: cat foo bar > foo