From owner-freebsd-hackers@FreeBSD.ORG Wed May 24 01:42:20 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 CF79216AB7E for ; Wed, 24 May 2006 01:42:20 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F45B43D45 for ; Wed, 24 May 2006 01:42:20 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so1951377uge for ; Tue, 23 May 2006 18:42:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VUQ4KCl9by74UvBYg7UI0041eC/Qjm7Os8M0BEnmkoZAcUzLBAgELJHpze20dmjahElxrMEZ4YWwC1eEa0hlrEnfP0A00d4BcFWDw04f5t47dH59p7u0HdWYRmMrR6HJtYzJl7wEWlKlACeAdo7T/ptVnPemPaKzi+59EfWPu0k= Received: by 10.78.47.9 with SMTP id u9mr1577477huu; Tue, 23 May 2006 18:42:18 -0700 (PDT) Received: by 10.78.71.19 with HTTP; Tue, 23 May 2006 18:42:18 -0700 (PDT) Message-ID: <84dead720605231842y4fc8f1c9x69bdce897fb470f7@mail.gmail.com> Date: Wed, 24 May 2006 07:12:18 +0530 From: "Joseph Koshy" To: "gs_stoller@juno.com" In-Reply-To: <20060523.182218.19235.1026225@webmail29.nyc.untd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060523.182218.19235.1026225@webmail29.nyc.untd.com> 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 01:42:21 -0000 > 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) and I wanted to create the file named > a also pointing to it. The correct form was 'ln -s b a'. > FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 \ 10:54:49 GMT 2001 \ jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 > FreeBSD 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 \ 15:08:34 GMT 2002 \ root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC \ i386 I don't have a 4.3 or 4.7 box, but on 4.11 I see: $ ls a.out a.out $ ln -s foo a.out ln: a.out: File exists $ echo $? 1 Are you really running /bin/ln? Do you run other programs at the time of displaying your PS1 prompt? -- FreeBSD Developer, http://people.freebsd.org/~jkoshy