Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2002 11:05:40 -0700
From:      "David O'Brien" <dev-null@NUXI.com>
To:        Giorgos Keramidas <keramida@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: mergemaster(8) broken -- uses Perl
Message-ID:  <20020519110540.C39336@dragon.nuxi.com>
In-Reply-To: <20020519022922.GA10039@hades.hell.gr>; from keramida@FreeBSD.ORG on Sun, May 19, 2002 at 05:29:22AM %2B0300
References:  <20020518115410.A33493@dragon.nuxi.com> <20020519022922.GA10039@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020519110540.C39336>