delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/13/15:46:09

Date: Fri, 13 Dec 2002 22:43:57 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Arthur J. O'Dwyer" <ajo AT andrew DOT cmu DOT edu>
Message-Id: <8361-Fri13Dec2002224356+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <Pine.GSO.4.44L-027.0212131242480.6504-100000@unix2.andrew.cmu.edu> (ajo@andrew.cmu.edu)
Subject: Re: Bug in command-line globbing
References: <Pine DOT GSO DOT 4 DOT 44L-027 DOT 0212131242480 DOT 6504-100000 AT unix2 DOT andrew DOT cmu DOT edu>
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

> From: "Arthur J. O'Dwyer" <ajo AT andrew DOT cmu DOT edu>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 13 Dec 2002 12:48:59 -0500 (EST)
> 
> this "workaround" is possibly *more* useless than the default behavior.
> 
>  * Arguments are split at whitespace and stripped of quotes before
>    being passed to the function.  Can you write "echo" in DJGPP?
> 
>  * Quote-globbing still occurs.  \ escapes quotes and nothing else.
>    So my problem can't be fixed this way anyway.
> 
>  * Arguments do not get passed to __crt0_glob_function if they contain
>    a quoted wildcard character.  This renders the function useless for
>    performing any sort of non-default wildcard globbing.

How about reading the docs before throwing more accusations in
``useless'' functionality at us?  I think the _CRT0_FLAG_KEEP_QUOTES
bit, documented in libc.info under `_crt0_startup_flags', does what
you want (although personally, I think you are wasting effort trying
to circumvent DJGPP command-line handling which already works well
enough, including in cases you need to work with).

- Raw text -


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