Hi Brian,
Thanks for your response. I'll use ports@ in future - noted.
I understand the fallback to print usage() in the event of passing more
than one param, however in my case usage() is being called regardless.
I have /usr/ports on my system but I'm not familiar with the build
process in OpenBSD ports yet to be able discern what's going on.
However, I have built from upstream and behaviour is as expected:
me@box:~/free$ ./free
total used free
Mem: 7.9G 7.3G
545M
Swap: 8.1G 0B
8.1G
Grateful if you could let me know if I'm doing anything wrong. Many
thanks.
Matthew
On 14-06-2022 10:56 , Callahan, Brian Robert wrote:
Hello Matthew --
Send emails like this to ports@, not ports-bugs@.
In any event, in this case, there is no bug. The program is operating as
intended: https://github.com/NanXiao/free/blob/master/free.c#L45
~Brian
--
Brian Robert Callahan, Ph.D.
Lecturer, ITWS@RPI
Office: Lally 304
-----Original Message-----
From: Matthew <[email protected]>
Sent: Tuesday, June 14, 2022 6:48 AM
To: [email protected]
Cc: [email protected]
Subject: [EXTERNAL] free - can only display usage
Hi,
The binary package of free-1.1 (sysutils/free) produces only `usage:
free [-m]` no matter what input is given.
On -current - 7.1 GENERIC.MP#582 amd64.
Let me know if you need anything else.
Matthew
--
Matthew Lemon
Email: [email protected]