From owner-freebsd-current Sun May 19 11: 5:44 2002 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 532EE37B407; Sun, 19 May 2002 11:05:41 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g4JI5fJn039476; Sun, 19 May 2002 11:05:41 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g4JI5ebw039475; Sun, 19 May 2002 11:05:40 -0700 (PDT) Date: Sun, 19 May 2002 11:05:40 -0700 From: "David O'Brien" To: Giorgos Keramidas Cc: current@FreeBSD.ORG Subject: Re: mergemaster(8) broken -- uses Perl Message-ID: <20020519110540.C39336@dragon.nuxi.com> Reply-To: current@FreeBSD.ORG Mail-Followup-To: David O'Brien , Giorgos Keramidas , current@FreeBSD.ORG References: <20020518115410.A33493@dragon.nuxi.com> <20020519022922.GA10039@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020519022922.GA10039@hades.hell.gr>; from keramida@FreeBSD.ORG on Sun, May 19, 2002 at 05:29:22AM +0300 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, May 19, 2002 at 05:29:22AM +0300, Giorgos Keramidas wrote: > Part of the problems I had when I tried to replace perl in > mergemaster.sh with something `native' was that the perl code uses > stat(2) to obtain the permission bits of a directory/file and I can't > think of a way to do this with tools in the base system without > resorting to ugly awk scripts that parse and translate ls(1) output. What is so ugly about it? It is not that many lines, and it is very easy to read and understand what you are doing. Make it an sh function. There is most likely code like this in the Perl binary. If this is so ugly lets gut it out of perl also. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message