www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/12/22:45:04

From: "Arthur J. O'Dwyer" <ajo AT andrew DOT cmu DOT edu>
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: <Pine.GSO.4.44L-027.0212122221540.23334-100000@unix14.andrew.cmu.edu>
NNTP-Posting-Host: smtp7.andrew.cmu.edu
Mime-Version: 1.0
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: <Xns92E2E2C07998Basu1cornelledu@132.236.56.8>
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

On 13 Dec 2002, A. Sinan Unur wrote:
>
> "Arthur J. O'Dwyer" <ajo AT andrew DOT cmu DOT edu> 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 <stdio.h>
>
> #ifdef __DJGPP__
> /* The code below is from the FAQ as well:
>    http://www.delorie.com/djgpp/v2faq/faq8_7.html
> */
> #include <crt0.h>
>
> 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019