From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 8 19:32:37 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 00BE3C0D for ; Tue, 8 Apr 2014 19:32:36 +0000 (UTC) Received: from udns.ultimateDNS.NET (ultimatedns.net [209.180.214.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE7CD1A1D for ; Tue, 8 Apr 2014 19:32:36 +0000 (UTC) Received: from udns.ultimateDNS.NET (localhost [127.0.0.1]) by udns.ultimateDNS.NET (8.14.5/8.14.5) with ESMTP id s38JZtlF007414; Tue, 8 Apr 2014 12:36:01 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: (from www@localhost) by udns.ultimateDNS.NET (8.14.5/8.14.5/Submit) id s38JZo2t007408; Tue, 8 Apr 2014 12:35:50 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net ([209.180.214.225]) (UDNSMS authenticated user chrish) by ultimatedns.net with HTTP; Tue, 8 Apr 2014 12:35:50 -0700 (PDT) Message-ID: <4e735f74795e7212dd3269ec6b0aaaf0.authenticated@ultimatedns.net> In-Reply-To: <20140408184533.GA974@spectrum.skysmurf.nl> References: <20140408184533.GA974@spectrum.skysmurf.nl> Date: Tue, 8 Apr 2014 12:35:50 -0700 (PDT) Subject: Re: Letting "ls -l" display file permissions in octal From: "Chris H" To: "A.J. 'Fonz' van Werven" User-Agent: UDNSMS/2.0.3 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 19:32:37 -0000 > [Please CC me when you think it's necessary; I'm not subscribed to ] > [-hackers because I'm not a developer. ] > > Someone asked on the FreeBSD Forums whether it was possible to let "ls -l" > display file permissions in octal, e.g. > > % ls -lO > -0644 1 root wheel - 855B Mar 4 16:30 some_file > > instead of > > % ls -l > -rw-r--r-- 1 root wheel - 855B Mar 4 16:30 some_file > > Since ls itself appears not to have an option for that and I quite liked > the idea, I decided to hack the source of ls to do just that. > > If you folks think this is a good idea, then by all means feel free to > discuss my patch and possibly incorporate it into the FreeBSD source tree. > And if you think it's not a good idea, no harm done. It's just a pet > project (and a simply one at that) so my feelings won't be hurt if it's > not accepted. +1 for incorporating it, and adding it to BASE. --Chris > > The patch can be found here: http://www.skysmurf.nl/attic/ls.patch > > And the discussion thread in question on the FreeBSD Forums can be found > here: https://forums.freebsd.org/viewtopic.php?f=3&t=45825 > > Regards, > > Alphons "Fonz" van Werven > > -- > I'm not completely useless, I can be used as a bad example. >