Xref: utzoo comp.sys.amiga:19569 comp.sys.amiga.tech:877
Path: utzoo!attcan!uunet!nuchat!sugar!peter
From: peter@sugar.UUCP (Peter da Silva)
Newsgroups: comp.sys.amiga,comp.sys.amiga.tech
Subject: Re: CLI/shells
Message-ID: <2063@sugar.UUCP>
Date: 31 May 88 19:17:16 GMT
References: <8805092047.AA18301@cory.Berkeley.EDU> <1974@sugar.UUCP> <5732@cup.portal.com>
Organization: Sugar Land UNIX - Houston, TX
Lines: 45

In article <5732@cup.portal.com>, doug-merritt@cup.portal.com writes:
> I write:
> > I suspect that the reason that Jeff's code hasn't been used more extensively
> > is that you've got to put a good wrapper around it.
> 
> Peter da Silva writes:
> >If you want to use it just for command line arguments, anyway. In the latest
> >version of Browser I use it to select groups of files.
> 
> Yes...I got it from an old Browser,...

You didn't get it from my "browser", I hope. The source shouldn't be out
there... :->

> >I used to use "buildav(&ac, &av)", but really you need to change _main
> >to do the globbing for command line args invisibly, and to provide an analog
> >of Examine/ExNext.

> Actually that's two separate interfaces you're talking about. For

Yeh, I know. I didn't intend to imply otherwise.

> enhancing _main(), you could just call the Glob(&ac, av) routine I
> was talking about, and your command line gets wildcard expanded.

I much prefer making this invisible. I mean, really: just how Amiga-
specific do you want your CLI programs to be? You should just be able
to recompile and link "uudecode" and have it go.

> The second one is the scdir() you suggest, which would also be useful
> for some purposes...like to drop into code that was previously using
> ExNext() with minimum hassle.

Or to drop into code that's already using scdir(), so it will suddenly
use AmigaDOS wildcarding!

> Question: does scdir() handle patterns
> like "#?/#?/#?" or is it just current directory?

Who cares? If you want to make your replacement code do it the right way
that's perfectly cool.
-- 
-- Peter da Silva      `-_-'      ...!hoptoad!academ!uhnix1!sugar!peter
-- "Have you hugged your U wolf today?" ...!bellcore!tness1!sugar!peter
-- Disclaimer: These may be the official opinions of Hackercorp.