From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 8 18:53:30 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 BE7A577B for ; Tue, 8 Apr 2014 18:53:30 +0000 (UTC) Received: from spectrum.skysmurf.nl (spectrum.skysmurf.nl [82.95.125.145]) (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 33C8815A5 for ; Tue, 8 Apr 2014 18:53:29 +0000 (UTC) Received: from spectrum.skysmurf.nl (mail.skysmurf.nl [192.168.42.4] (may be forged)) by spectrum.skysmurf.nl (8.14.7/8.14.7) with SMTP id s38IjXTq001335 for ; Tue, 8 Apr 2014 20:45:33 +0200 (CEST) (envelope-from freebsd@skysmurf.nl) Received: by spectrum.skysmurf.nl (sSMTP sendmail emulation); Tue, 08 Apr 2014 20:45:33 +0200 Date: Tue, 8 Apr 2014 20:45:33 +0200 From: "A.J. 'Fonz' van Werven" To: freebsd-hackers@freebsd.org Subject: Letting "ls -l" display file permissions in octal Message-ID: <20140408184533.GA974@spectrum.skysmurf.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline X-PGP-Key: http://www.skysmurf.nl/~fonz/fonz_pubkey.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailman-Approved-At: Tue, 08 Apr 2014 18:59:28 +0000 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 18:53:30 -0000 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [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. 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=3D3&t=3D45825 Regards, Alphons "Fonz" van Werven --=20 I'm not completely useless, I can be used as a bad example. --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJTREPNAAoJEAfP7gJTaCe87JIQAMqN9XWEI0/x6gYRXjXYnpb4 hJnlva7dR3TJSaaZ0fgUW48ITS4HnDh21SvUzDpc6fYl9K0qjvYVOvoTm7ukKyNm k+lZOcvVcYKOUn42NSXcqqxNBLPIgqni0iPFf/K69C5gZO5rkQfHFKAO9fmYyjAx 8hJ3GT4LRNTFp/EEL3jwBdnvznSlMx6/M3/HZk341kDkrH8nzxabJ5ZZ2c0BJw08 gUMB6M4lMh8UOiAtI7OeZVlQM3JucSeMSKUdqm8OJtatna+J/m+Gcgn+vwSPcVQ5 52moNYzXY79+61M0kQ9TX1KOZoEYtSI6HYKM5XE1bD+t5ohj6tJ4gx2CPBAw4bIO P4MtjuhVd+XoUuiQuUwlKUAzNXAJF45Zuv/oymLeXn4lEsrAxlO9edO7hx69O0O3 mwU0BAyHriacyTOblQt4Vwt7MbR4phBPIY4zO+ESzjaJ3RjG0AammuGaBh9alR4d ap+yDtmGcJIg4Qnhz2GRXbXIMosmVZUk2gI/bAWf8ogad2OIEkVVxjOhsZBJV1J1 DVQDByn4j1IpJ/9cQvRVa25Zc7Ev4+WoPPJ9igvdmIfo58EM17Dhzz+83TT3igOU 6W7agPeWccVKY9D1LpfyHHQus9LGp9pUS1dlbqOHw1Fv8m9nf9R7LHCnIbrwKRai j33EurrQ/nndYowA1jNa =gIqB -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--