www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/16/10:35:46

Date: Sun, 16 May 1999 17:30:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: TRUE and FALSE
In-Reply-To: <7hm9qq$kqc$1@news.luth.se>
Message-ID: <Pine.SUN.3.91.990516172456.20684F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 16 May 1999, Martin Str|mberg wrote:

> Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
> : Or, you can say "grep FALSE DJGPP_directory/include/.../*.h" and find
> : them all in one swell whoop ;-).
> 
> Not in tcsh in Linux/Unix, alas. Is this specific to DJGPP or does
> bash in general support this?

It's specific to the DJGPP version of `glob', so even Bash doesn't 
support it (you need to quote such patterns if you want to use them with 
Bash, so that they end up verbatim in the command line of the program you 
run).  Since the startup code uses `glob', all DJGPP programs expand this 
wildcard (see FAQ section 16.1).

The idea was lifted from VMS (AFAIK), so no other OS/shell supports such 
magic.

The next version 2.3 of Grep has a special switch that causes it to 
recursively descent a directory tree; this will work on all systems.  I 
didn't yet have time to make a DJGPP distribution, but since Grep 
supports DJGPP out of the box, you could simply download it from a GNU 
FTP site and build it on your machine.

- Raw text -


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