From owner-freebsd-hackers@FreeBSD.ORG Wed May 24 12:27:02 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7DB416A44A for ; Wed, 24 May 2006 12:27:02 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 2E1C643D5A for ; Wed, 24 May 2006 12:27:00 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 24 May 2006 13:26:59 +0100 (BST) Date: Wed, 24 May 2006 13:26:59 +0100 From: David Malone To: "gs_stoller@juno.com" Message-ID: <20060524122659.GA64453@walton.maths.tcd.ie> References: <20060523.182218.19235.1026225@webmail29.nyc.untd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060523.182218.19235.1026225@webmail29.nyc.untd.com> User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie Cc: freebsd-hackers@freebsd.org Subject: Re: The 'ln -s' command X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 May 2006 12:27:03 -0000 On Wed, May 24, 2006 at 01:21:59AM +0000, gs_stoller@juno.com wrote: > I tried the 'ln -s' command in bothe 4.3 & 4.7 in a situation > where it should fail and it did, but it still had a return/exit > code of 0 , I think it should have been nonzero. I tried 'ln -s > a b' where the file b existed (and was a directory) In this case, ln should make a link called b/a pointing to a. ln probably successfully did this and returned 0. The behaviour is documented in the ln man page I think. David.