logo       


Re: new restrictions syntax proposal: msg#00227

Subject: Re: new restrictions syntax proposal
In message <4132C989.1090501@xxxxxxxxxxxxx> on Mon, 30 Aug 2004 00:30:33 -0600, 
Derek Scherger <derek@xxxxxxxxxxxxx> said:

derek> Richard Levitte - VMS Whacker wrote:
derek> > 
derek> > The usual problem, which applies to all programs doing it this way.
derek> 
derek> I assume you mean the globbing stuff?

Yes.

derek> If the shell *does* do globbing though, --include *.c expands
derek> to something like  --include a.c b.c c.c d.c and from what I
derek> can see with the popt option library you can get either
derek> --include or --include a.c out of this, b.c, c.c and d.c will
derek> have nothing to do with the option. I don't see any way of
derek> saying "I want to use --include and --exclude but please don't
derek> treat them as normal options, just leave them in the argument
derek> list in order and untouched."

Hmm, good point.  I wonder how GNU ld does it...  Probably manually.

derek> > However, if we want to be portable, we must be prepared for internal
derek> > globbing anyway, since there are shells that don't do it for us (like
derek> > the Windows command prompt, I believe...).
derek> 
derek> I've been wondering whether one of the portability libraries
derek> might slip in before main(argc, argv) and possibly do the
derek> globbing before main sees the arguments so that we don't need
derek> to worry about it explicitly.

Well, it's always possible to do, by having the portability library
create a macro called "main", that translates that symbol to
"submain", and then define it's own main() that does the twiddling...

I think I've done that once upon a time, but I can't quite remember
for what...

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         richard@xxxxxxxxxxx
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe