getconf default output

Josh Aas josha@sgi.com
Sat Aug 28 00:20:00 GMT 2004


Roland McGrath wrote:

>>Would it be possible to have the default output (no options) of getconf 
>>be all variables and their values instead of the usage?
>>    
>>
>
>Sure, send a patch to implement it.
>  
>
A patch is attached. The directory assumption is simple defined with a 
macro at the top for easy modification if you wish. This list is useful 
for finding out what information is available or easy grepping for more 
than one value. What is printed by default now is totally useless. I 
don't agree that people always know the variable they are looking for, 
or that that is even the issue.

If this patch were landed, an update to the man page should happen to 
tell users what path is assumed. To not print out path-dependent 
variables, the removal of three or 4 lines from the patch is all that is 
necessary.

My implementation happens to model the IRIX sysconf command in its 
formatting and its path assumption. The path assumption only takes 
effect when NO arguments to the command are specified, of course.

-- 
Josh Aas
Linux System Software
Silicon Graphics, Inc. (SGI)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glibc-2.3.3-default_output.patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040828/883d7e4e/attachment.ksh>


More information about the Libc-alpha mailing list