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

List:       busybox
Subject:    Re: [BusyBox] tr argumnent processing
From:       Craig Skinner <craig () openpost ! org>
Date:       2005-07-26 17:48:31
Message-ID: 42E6776F.7050509 () openpost ! org
[Download RAW message or body]

Rainer Weikusat wrote:
> The busybox tr understands exactly one argument with support for
> switch clustering, it does not understand the conventional '--' for
> "stop with option processing" and using a single hyphen instead of an
> actual option does neither result in an error message nor is the
> obvious use (instead of '--' to terminate option processing)
> documented. The patch below changes tr.c to accept multiple arguments,
> to print a usage message whenever an undocumented or incomplete option
> is encountered and to accept '--' for its "usual"
> purpose. Additionally, it does away with the pointless Pascalisms in
> the argument processing (one variable less), prints a usage message
> when called with no arguments and corrects the verb in one of the
> error messages.

Well done, I'm keen on tr for jobs that sed would be overkill for.
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

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