From owner-cvs-src@FreeBSD.ORG Sun Dec 14 03:40:11 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 7079016A4CE; Sun, 14 Dec 2003 03:40:11 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D69D743D3C; Sun, 14 Dec 2003 03:40:09 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) hBEBe7np055811; Sun, 14 Dec 2003 11:40:08 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost)hBEBe796055810; Sun, 14 Dec 2003 11:40:07 GMT (envelope-from mark@grondar.org) X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1])hBEBa2pD043994; Sun, 14 Dec 2003 11:36:02 GMT (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200312141136.hBEBa2pD043994@grimreaper.grondar.org> To: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) In-Reply-To: Your message of "Sat, 13 Dec 2003 17:42:46 +0100." Date: Sun, 14 Dec 2003 11:36:02 +0000 Sender: mark@grondar.org X-Spam-Status: No, hits=0.2 required=5.0 tests=EMAIL_ATTRIBUTION,FROM_NO_LOWER,IN_REP_TO, QUOTED_EMAIL_TEXT,REPLY_WITH_QUOTES version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) 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:40:11 -0000 Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= 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. > > 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. Does 4.x's stat(1) have the "-s" switch? If so: $ ( eval $(stat -s .profile) ; printf "%o %s\n" ${st_mode} ${st_mode} ) 100644 0100644 Would that be any use? M -- Mark Murray iumop ap!sdn w,I idlaH