From owner-freebsd-questions Thu Dec 6 11:19:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.cz (diana.mobil.cz [195.39.16.12]) by hub.freebsd.org (Postfix) with ESMTP id D050B37B405 for ; Thu, 6 Dec 2001 11:19:47 -0800 (PST) Received: from ester.mobil.cz (ester.mobil.cz [194.213.62.23]) by mobil.cz (8.11.6/8.11.0) with ESMTP id fB6JJkC24424; Thu, 6 Dec 2001 20:19:46 +0100 Received: from roman.mobil.cz ([10.2.0.89]) by ester.mobil.cz (Lotus Domino Release 5.0.7) with ESMTP id 2001120620014171:11282 ; Thu, 6 Dec 2001 20:01:41 +0100 Received: (from roman@localhost) by roman.mobil.cz (8.11.6/8.11.6) id fB6J8mw13225; Thu, 6 Dec 2001 20:08:48 +0100 (CET) (envelope-from neuhauser@mobil.cz) X-Authentication-Warning: roman.mobil.cz: roman set sender to neuhauser@mobil.cz using -f Date: Thu, 6 Dec 2001 20:08:48 +0100 From: Roman Neuhauser To: Anthony Atkielski Cc: FreeBSD Questions Subject: Re: Modifying only certain bits with chmod Message-ID: <20011206200848.A12197@roman.mobil.cz> Mail-Followup-To: Anthony Atkielski , FreeBSD Questions References: <001601c17e7c$9a391040$0a00000a@atkielski.com> Mime-Version: 1.0 In-Reply-To: <001601c17e7c$9a391040$0a00000a@atkielski.com> User-Agent: Mutt/1.3.23i X-MIMETrack: Itemize by SMTP Server on ester/Mobil(Release 5.0.7 |March 21, 2001) at 12/06/2001 08:01:41 PM, Serialize by Router on ester/Mobil(Release 5.0.7 |March 21, 2001) at 12/06/2001 08:19:17 PM, Serialize complete at 12/06/2001 08:19:17 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: "Anthony Atkielski" > To: "FreeBSD Questions" > Subject: Re: Modifying only certain bits with chmod > Date: Thu, 6 Dec 2001 18:36:56 +0100 > > Roman writes: > > > I'm not that old, have been using FreeBSD for a couple of months > > only, and yet I terribly miss an option that would make ls(1) > > display perms in octal. > > Done. Shall I send you the modified source? I added a -p option (one of > the few letters available!) which prints the file modes in octal instead of > as the usual -rw-r--r-- strings if you also specify the long format for > output (-l). I've not exhaustively tested it but it seems to work okay > (it's a simple change). I prefer unified diffs (diff -u), but anything will do. And thanks! -- FreeBSD 4.4-STABLE 8:07PM up 44 days, 6:50, 11 users, load averages: 0.93, 0.49, 0.24 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message