Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2014 12:35:50 -0700 (PDT)
From:      "Chris H" <bsd-lists@bsdforge.com>
To:        "A.J. 'Fonz' van Werven" <freebsd@skysmurf.nl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Letting "ls -l" display file permissions in octal
Message-ID:  <4e735f74795e7212dd3269ec6b0aaaf0.authenticated@ultimatedns.net>
In-Reply-To: <20140408184533.GA974@spectrum.skysmurf.nl>
References:  <20140408184533.GA974@spectrum.skysmurf.nl>

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




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