From owner-cvs-src@FreeBSD.ORG Sun Dec 14 03:45:35 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36A0116A4CE for ; Sun, 14 Dec 2003 03:45:35 -0800 (PST) Received: from plouf.absolight.net (plouf.absolight.net [212.43.217.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEB9243D32 for ; Sun, 14 Dec 2003 03:45:31 -0800 (PST) (envelope-from mat@FreeBSD.org) Received: by plouf.absolight.net (Postfix, from userid 1004) id BD9454A9DF1; Sun, 14 Dec 2003 12:45:30 +0100 (CET) X-Original-To: cvs-src@FreeBSD.org Received: from cmantatzi.in.t-online.fr (cmantatzi.in.t-online.fr [213.44.126.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by plouf.absolight.net (Postfix) with ESMTP id 86D004A9DA2; Sun, 14 Dec 2003 12:45:30 +0100 (CET) Date: Sun, 14 Dec 2003 12:44:06 +0100 From: Mathieu Arnold To: Mark Murray , =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= Message-ID: <100583430.1071405846@cmantatzi.in.t-online.fr> In-Reply-To: <200312141136.hBEBa2pD043994@grimreaper.grondar.org> References: <200312141136.hBEBa2pD043994@grimreaper.grondar.org> X-Mailer: Mulberry/3.1.0 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile.inc1 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 11:45:35 -0000 +-le 14/12/03 11:36 +0000, Mark Murray =E9crivait : | Dag-Erling =3D?iso-8859-1?q?Sm=3DF8rgrav?=3D writes: |> It uses Perl directly to compute the numeric mode of a file. The |> version in -CURRENT uses a combination of stat(1), bc(1) and shell |> arithmetic which causes a syntax error in 4.x. |>=20 |> Personally, I think it would be best if stat(1) could gain an option |> (-m perhaps) that makes it simply print its arguments' modes in octal. |=20 | Does 4.x's stat(1) have the "-s" switch? If so: |=20 | $ ( eval $(stat -s .profile) ; printf "%o %s\n" ${st_mode} ${st_mode} ) | 100644 0100644 |=20 | Would that be any use? I don't believe 4.x has stat(1) anyway. --=20 Mathieu Arnold