Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2003 11:36:02 +0000
From:      Mark Murray <mark@grondar.org>
To:        des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src Makefile.inc1 
Message-ID:  <200312141136.hBEBa2pD043994@grimreaper.grondar.org>
In-Reply-To: Your message of "Sat, 13 Dec 2003 17:42:46 %2B0100." <xzp7k101xfd.fsf@dwp.des.no> 

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



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