Re: grdc: show timezone when TZ is set

2022-09-18 Thread David Goerger
Sunday, 20220918 13:38+, Florian Obser wrote: I'm happy with that, let's do this then - fix the offset calculation - output tm->tm_zone in addition to TZ to be able to spot typos. I like the overall diff (thanks!), but one minor formatting nit is that I believe it's more common under ISO

who(1) patch for unveil violation

2020-08-27 Thread David Goerger
Hello, This morning I was surprised to see a who(1) unveil violation in a lastcomm(1) report, so I looked into it and found that when requesting show_idle (-u flag) or show_term (-T flag), we indeed try to read _PATH_DEV, which isn't unveiled yet. I'm not an unveil(2) expert, and there might be

Re: Teach du(1) the -m flag, disk usage in megabytes

2020-01-29 Thread David Goerger
Monday, 20200127 18:29-0500, Daniel Jakots wrote: > Can't you achieve what you want with `du -sh * | sort -h`? du(1)'s > -h options will automatically select the best suffix and sort(1)'s > -h will sort first using the suffix then the numerical value. Thanks! I didn't know about "sort -h". That

Re: Teach du(1) the -m flag, disk usage in megabytes

2020-01-26 Thread David Goerger
Monday, 20200127 10:05+1100, Jonathan Gray wrote: > On Sun, Jan 26, 2020 at 11:59:33AM -0500, David Goerger wrote: > > This diff teaches du(1) the -m flag, report disk usage in megabytes. > > This brings us in line with implementations in the other BSDs, Linux, > >

Teach du(1) the -m flag, disk usage in megabytes

2020-01-26 Thread David Goerger
This diff teaches du(1) the -m flag, report disk usage in megabytes. This brings us in line with implementations in the other BSDs, Linux, and Illumos. Other base utilities where this flag might be useful include df(1) and quot(8), although it doesn't appear to be universally adopted among the