🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Wildcard types

#6752
From: Kim DeVaughn
Date: Sat, 17 Nov 1990 23:06
55 lines
3045 bytes
In article <1990Nov16.234820.14783@msuinfo.cl.msu.edu> jap@convex.cl.msu.edu (Joe Porkka) writes:
> 
> What happens when your wildcard matches 5000 files? makes for an
> awful LONG command line. (/bin/csh in UNIX simply complains
> about line to long and aborts)

Recompile the shell, specifying a larger cmd line buffer.  I think we use
around 64K now on our UTS(tm) systems.


> What do you do when you want to match * */* */*/* ..... without
> knowing how deep you need to go? (this can be fixed by doing something
> like */.../* I suppose - but it aint done now).

Use "find" (several such cmds are available on the Amiga).


The biggest problem with leaving wildcard expansion up to each application
is that it means each application needs to do the job in exactly the same
way in order to provide a consistent environment.  And that is asking a lot,
IMO.  Minor issues like making each executable bigger, etc. can also be
mentioned, but are secondary (again, IMO).  [ And I do not mean to imply
that UNIX(R) is totally consistent in this regard ... :-) ]

With the shell doing the expansion, individual cmds need only be designed
to handle multiple agruments.


Now here's a question for you ... how many programs that are out there that
perform their own wildcard expansion will break when (and if) links to
directories are provided?  How long do you think it will be before all of
them get updated to account for the new feature (if ever)?

Granted, shells will need maintenance to accomodate such new features too,
but with shells doing the expansion, it only need to be done in ONE place
(per shell) with the change being "transparent" to (most) commands.


I realize this is a religious issue, and I'm not likely to change anyone's
mind ... much less AmigaShell's way of doing things, nor CBM's philosophy
on such issues, but every once-in-awhile I feel the need to proselytize
just a little bit.  Ah ... if only we'd had CAOS to begin with ...!


BTW, does the SetDate command handle wildcards under 2.0 ... of at least
multiple args?

/kim

-- 
UUCP:  kim@uts.amdahl.com   -OR-   ked01@juts.ccc.amdahl.com
  or:  {sun,decwrl,hplabs,pyramid,uunet,oliveb,ames}!amdahl!kim
DDD:   408-746-8462
USPS:  Amdahl Corp.  M/S 249,  1250 E. Arques Av,  Sunnyvale, CA 94086
BIX:   kdevaughn     GEnie:   K.DEVAUGHN     CIS:   76535,25
Technical Details
Message-ID: <a9rK02ZFe8RI01@amdahl.uts.amdahl.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!apple!amdahl!kim
References: <15517@cbmvax.commodore.com> <2439@trlluna.trl.oz> <15620@cbmvax.commodore.com> <1990Nov16.171451.5668@gtisqr.uucp> <1990Nov16.234820.14783@msuinfo.cl.msu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!apple!amdahl!kim
From: kim@uts.amdahl.com (Kim DeVaughn)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Wildcard types
Summary: and Moses came down from the mountain ...
Message-ID: <a9rK02ZFe8RI01@amdahl.uts.amdahl.com>
Date: 17 Nov 90 23:06:47 GMT
References: <15517@cbmvax.commodore.com> <2439@trlluna.trl.oz> <15620@cbmvax.commodore.com> <1990Nov16.171451.5668@gtisqr.uucp> <1990Nov16.234820.14783@msuinfo.cl.msu.edu>
Reply-To: ked01@JUTS.ccc.amdahl.com (Kim DeVaughn)
Organization: Amdahl Corporation,  Sunnyvale, CA 94086
Lines: 55