🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #3047

Re: Amigix.library in progress... (was Re: Wildcards)

#3047
From: Peter da Silva
Date: Fri, 23 Mar 1990 02:59
37 lines
2137 bytes
In article <DEVEN.90Mar22125624@netserv2.rpi.edu> deven@rpi.edu (Deven T. Corzine) writes:
> Peter> 	cx#(0|1|2|3|4|5|6|7|8|9)

> Can't.  But, it IS nicer to be able to use "[0-9]" instead of
> "(0|1|2|3|4|5|6|7|8|9)"...

Yeh, but you can't do cx#(0|1|2|3|4|5|6|7|8|9).(obj|bak|lnk|lbk)

The point is that regular expressions are more powerful than wildcards. And
the Amiga "wildcards" are regular expressions.

> No reason why some Unix shell shouldn't allow full regexps for
> globbing.  They just don't, usually.  :-)  [tradition, y'know.]

Well, that's the point ain't it?

> I would like to be able to do "Join *.c wx#(y|z) ab#c.* to '*'" and
> have it work as expected.  That is, first *.c is Unix semantics,
> second wx#(x|y) is AmigaDOS semantics, third ab#c.* is a combination,
> and the fourth (fifth) '*' is an escaped wildcard, so it would open
> the console as * normally does for BCPL...

Ack. Give me consistency.

> Why write bcopy() when there is exec.library CopyMem()?  Because bcopy
> will handle arbitrary overlapping memory blocks, which CopyMem() does
> not.

How about putting this in the C library level, and implement sbrk() for
the lower level. malloc isn't a system call... Also, how about using ANSI
C functions (memcpy, memmov, memcmp, etc) instead of the non-standard BSD
ones?
-- 
 _--_|\  Peter da Silva <peter@sugar.hackercorp.com>.
/      \
\_.--._/ I haven't lost my mind, it's backed up on tape somewhere!
      v  "Have you hugged your wolf today?" `-_-'
Technical Details
Message-ID: <5437@sugar.hackercorp.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!cs.utexas.edu!rutgers!bellcore!texbell!sugar!peter
References: <102618@linus.UUCP> <5405@sugar.hackercorp.com> <DEVEN.90Mar19071609@netserv2.rpi.edu> <5421@sugar.hackercorp.com> <DEVEN.90Mar22125624@netserv2.rpi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!cs.utexas.edu!rutgers!bellcore!texbell!sugar!peter
From: peter@sugar.hackercorp.com (Peter da Silva)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Amigix.library in progress... (was Re: Wildcards)
Message-ID: <5437@sugar.hackercorp.com>
Date: 23 Mar 90 02:59:17 GMT
References: <102618@linus.UUCP> <5405@sugar.hackercorp.com> <DEVEN.90Mar19071609@netserv2.rpi.edu> <5421@sugar.hackercorp.com> <DEVEN.90Mar22125624@netserv2.rpi.edu>
Reply-To: peter@sugar.hackercorp.com (Peter da Silva)
Organization: Sugar Land Unix - Houston
Lines: 37