[Fwd: Re: [BusyBox] bug#1084: df does not allow -f]
Richard June
rjune at imagestream-is.com
Fri Dec 22 17:32:02 UTC 2000
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.
More information about the busybox
mailing list