[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [Fwd: Re: [BusyBox] bug#1084: df does not allow -f]
From:       Richard June <rjune () imagestream-is ! com>
Date:       2000-12-22 17:32:02
[Download RAW message or body]

Matt Kraai wrote:

> On Thu, Dec 21, 2000 at 02:44:38PM -0500, Richard June wrote:
> 
>> This is to fix df and let it accept -k, thoughts?
> 
> 
> My suggestions are (a) use getopt and (b) use a for loop to
> iterate through the paths:
> 
> for (i = optind; i < argc; i++) {
> 	/* df stuff on argv[i] */
> }
> 
> It's simple enough to be obviously correct and should be well
> optimized by a good compiler.
> 
> Matt

Yes, but I've not used getopt yet and that only took 5 minutes. :-)
I'll look into doing it with getopt and post back in a day or two.




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic