Re: Ada.Command_Line and wildcards
- From: "Hyman Rosen" <hyman.rosen@xxxxxxxxx>
- Date: 23 Feb 2007 11:04:17 -0800
On Feb 22, 8:15 pm, Robert A Duff <bobd...@xxxxxxxxxxxxxxxxxxxx>
wrote:
Yuck -- bad design!
The designers of UNIX didn't feel that it was necessary for every
program to incorporate a wildcard expander when that could be done
externally. Back then keeping programs small and simple was a virtue.
And there's no wildcard that means "all subdirectories, recursively".
And no wildcard that means "all files that have changed since
yesterday".
There are an infinite number of things that you might want to specify.
Many of them won't have been thought of when the programs which could
benefit from them are written. That's why it's better to do these
things
externally, and just have one program to modify when you come up with
your new wildcards.
So we're stuck with kludgery like "find" and "xargs". Yuck.
I don't understand. Doesn't "find" have exactly the interface that you
claim to want?
And I can't create a command that works like this:
search *.ada "some string"
Huh? Why in the world not? The program knows how many arguments it
has,
and it can get to the last one as easily as the first!
.
- Follow-Ups:
- Re: Ada.Command_Line and wildcards
- From: Robert A Duff
- Re: Ada.Command_Line and wildcards
- From: Adam Beneschan
- Re: Ada.Command_Line and wildcards
- References:
- Ada.Command_Line and wildcards
- From: Gautier
- Re: Ada.Command_Line and wildcards
- From: (see below)
- Re: Ada.Command_Line and wildcards
- From: gautier_niouzes
- Re: Ada.Command_Line and wildcards
- From: Jean-Pierre Rosen
- Re: Ada.Command_Line and wildcards
- From: Robert A Duff
- Ada.Command_Line and wildcards
- Prev by Date: Re: Ada.Command_Line and wildcards
- Next by Date: Re: Ada.Command_Line and wildcards
- Previous by thread: Re: Ada.Command_Line and wildcards
- Next by thread: Re: Ada.Command_Line and wildcards
- Index(es):
Relevant Pages
|