From: "Arthur J. O'Dwyer" Newsgroups: comp.os.msdos.djgpp Subject: Re: Bug in command-line globbing Date: Thu, 12 Dec 2002 22:29:02 -0500 (EST) Organization: Carnegie Mellon, Pittsburgh, PA Lines: 67 Message-ID: NNTP-Posting-Host: smtp7.andrew.cmu.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: bb3.andrew.cmu.edu 1039750142 28888 128.2.10.87 (13 Dec 2002 03:29:02 GMT) X-Complaints-To: advisor AT andrew DOT cmu DOT edu NNTP-Posting-Date: 13 Dec 2002 03:29:02 GMT In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 13 Dec 2002, A. Sinan Unur wrote: > > "Arthur J. O'Dwyer" wrote in news:Pine.GSO.4.44L- > 027 DOT 0212122147030 DOT 22577-100000 AT unix14 DOT andrew DOT cmu DOT edu: > > > > [A. Sinan Unur wrote: something suggesting I clarify my question.] > > > > On Thu, 12 Dec 2002, Arthur J. O'Dwyer wrote: > [snipped] > > C:\Dload\misc>arg "*/" hello > :*/: > :hello: Argh, geez! Sorry about the past few messages; I just realized that while my "examples" were correct, my "Request" had a typo! Should have been % test (something goes here) :*\: :hello: Okay, *now* try it. (kicks self) I now realize that my responses must have seemed rather irrational. I hadn't noticed that my original posting contained / rather than \ in the key location. [snipped] > > #include > > #ifdef __DJGPP__ > /* The code below is from the FAQ as well: > http://www.delorie.com/djgpp/v2faq/faq8_7.html > */ > #include > > char **__crt0_glob_function (char *arg) > { > return 0; > } > > #endif Yes indeed. That's a rather sub-standard approach, IMHO, given that it works around an apparent bug in the DJGPP implementation, rather than... well... *not* working around the bug. [snipped] > Showing a little respect to people who are trying to help you is a 'good > thing', even if you are a math major at CMU. Indeed. Thanks for noticing? :-/ The (error-corrected) Request still stands, I suppose; and I still believe the default behavior to be a bug in the implementation. Notice that the "globbing" doesn't complain about mismatched quotes, and makes some argument values impossible to construct. Hence, I suggest that it is broken by design. -Arthur