Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2003 12:44:06 +0100
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Mark Murray <mark@grondar.org>, =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src Makefile.inc1 
Message-ID:  <100583430.1071405846@cmantatzi.in.t-online.fr>
In-Reply-To: <200312141136.hBEBa2pD043994@grimreaper.grondar.org>
References:  <200312141136.hBEBa2pD043994@grimreaper.grondar.org>

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



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