On 20/giu/06, at 09:44, Steve Garman wrote:

In a message regarding Re: Parsing the command line dated Tue, 20 Jun 2006
09:20:55 +0200, Massimo Valle said that ...

using grep it's an interesting idea, however I would avoid to open a
shell from my application to invoke grep.
A better solution of grep would be calling getopt() via a declare
which is standard in libc. But again this is something external and
only available to Mac OS X and Linux.
I'd prefer to have something written in RB and possibly cross- platform.

Please be aware that most Windows PCs do nothave grep available either.

But if you can do it with grep, you can do it within RB using a regEX


I'm not a grep or RegEx expert, however I bet using these tools I can't have a full feature command line parsing. Looking at how works getopt() there are plenty of options and rules to follow.

BTW, using RegEx is a better idea than using grep, thanks!

Massimo
Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com _______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to