Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 85433

Summary: help and getopt mismatch in 'free' (quickie)
Product: [Retired] Red Hat Linux Reporter: Matthew S. Hallacy <poptix+bugzilla>
Component: procpsAssignee: Alexander Larsson <alexl>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-09-25 08:54:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Matthew S. Hallacy 2003-03-02 17:39:21 UTC
From Bugzilla Helper: 
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1) 
 
Description of problem: 
usage: free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V] 
                                        ^^ 
        -b,-k,-m,-g show output in bytes, KB, MB, or GB 
        -h show detailed low and high memory statistics 
      ^^^^ 
 
 
Version-Release number of selected component (if applicable): 
 
 
How reproducible: 
Always 
 
Steps to Reproduce: 
1. free -h 
   
 
Actual Results:  'invalid usage' 
 
Expected Results:  should have printed detailed high/low memory usage. 
 
Additional info: 
 
*** free.orig   2003-03-02 11:34:41.000000000 -0600 
--- free.c      2003-03-02 11:34:50.000000000 -0600 
*************** 
*** 33,39 **** 
                "[-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]\n", 
                cmdline); 
        fprintf(stderr,"\t-b,-k,-m,-g show output in bytes, KB, MB, or GB\n"); 
!       fprintf(stderr,"\t-h show detailed low and high memory statistics\n"); 
        fprintf(stderr,"\t-o use old format (no -/+buffers/cache line)\n"); 
        fprintf(stderr,"\t-t display total for RAM + swap\n"); 
        fprintf(stderr,"\t-s update every [delay] seconds\n"); 
--- 33,39 ---- 
                "[-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]\n", 
                cmdline); 
        fprintf(stderr,"\t-b,-k,-m,-g show output in bytes, KB, MB, or GB\n"); 
!       fprintf(stderr,"\t-l show detailed low and high memory statistics\n"); 
        fprintf(stderr,"\t-o use old format (no -/+buffers/cache line)\n"); 
        fprintf(stderr,"\t-t display total for RAM + swap\n"); 
        fprintf(stderr,"\t-s update every [delay] seconds\n"); 
 
^- diff -rc fix.

Comment 1 Matthew S. Hallacy 2003-03-02 17:40:25 UTC
whoops,  
 
rpm -q procps 
procps-2.0.11-1 
 

Comment 2 Alexander Larsson 2003-03-11 13:22:37 UTC
This has been fixed in procps cvs after the 2.0.11 release. We'll get it when we
import the next release.