Path: 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> <5421@sugar.hackercorp.com> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Organization: Sugar Land Unix - Houston Lines: 37 In article 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 . / \ \_.--._/ I haven't lost my mind, it's backed up on tape somewhere! v "Have you hugged your wolf today?" `-_-'