From owner-freebsd-ports@FreeBSD.ORG Fri May 25 16:52:36 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53D74106582B for ; Fri, 25 May 2012 16:52:36 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C8F228FC18 for ; Fri, 25 May 2012 16:52:35 +0000 (UTC) Received: by bkvi18 with SMTP id i18so1174606bkv.13 for ; Fri, 25 May 2012 09:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=xDwKvW0Ywz6tbzzpoYy2IbZTaZ3M9BwMLBgh4CN9+DU=; b=B7xEjlhR0UxRYzmC9JQtKhkMmDaxD6+Mb0P5gO3kCPYRIg7ywragyycaQaFnQ/KeeG N8swyIBq0ngezF1+PgiZvmVCAGcQ0DPKOJs2uZPSL/46E2CJ98V8bZ4awWm0fVuI9hFH 9LP5W8ELLPD2tk9eJtS8WYXQ2umCBfGuWWbywtXbTNJNWZb+jPiLPnwWXQnZnDWotNRC X+igOu3ZqqeEGR1z+XQvB8bpgqeVc0rzu2+08gY7GaY8ZOWX7Ovkc2z2ZK1fvppMQP55 nAfprn+qAuDzs0J14n2wHhrLDMX37snKd9yFrT9R26tx1jj+mFmrlcGk6E/f7XQkCVqz Jntg== Received: by 10.204.154.214 with SMTP id p22mr1616636bkw.115.1337964754799; Fri, 25 May 2012 09:52:34 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.171.138 with HTTP; Fri, 25 May 2012 09:52:04 -0700 (PDT) In-Reply-To: <20120525140958.65863f97@gumby.homeunix.com> References: <20120525140958.65863f97@gumby.homeunix.com> From: Chris Rees Date: Fri, 25 May 2012 17:52:04 +0100 X-Google-Sender-Auth: 5eXo8Xkr4i67M1yUpvhT5ZyGpBM Message-ID: To: RW Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org 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 16:52:36 -0000 On 25 May 2012 14:09, RW wrote: > 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: > > =A0%echo nothing > foo > =A0%mv foo bar && echo something > foo > =A0%cat foo > =A0something > =A0%cat bar > =A0nothing > > 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: > > =A0cat foo bar > foo Perhaps. Just being overcautious, sorry :) Chris