I haven't come across any probs between the ksh and bash shells for basic
scripts. I started scripting in bash but moved to ksh (mostly because it's
pretty standard on both unix and linux boxes, while it's hard to find bash
on unix machines). Both ksh and bash have the philosophy of improving borne
while retaining compatibility, so I wouldn't be surprised if there's a lot
of overlap. I think the only scripts I've had trouble with were some of the
more convoluted ones. I would guess that this would probably work as long
as bash uses the $@ system variable (I think it does).
-Larry
> -----Original Message-----
> From: Thomas M. Albright [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, January 24, 2001 10:03 AM
> To: Tilly, Lawrence
> Cc: [EMAIL PROTECTED]
> Subject: RE: bash shell scripting questions
>
> On Wed, 24 Jan 2001, Tilly, Lawrence wrote:
>
> > Try this:
> >
> > #!/usr/bin/ksh
> > for DIRECTORY in "$@"; do
> > echo $DIRECTORY
> > ls $DIRECTORY
> > done
> >
> Do I need to use ksh? I really don't know much (read: anything) about
> that shell. Would the same for loop work in bash?
>
> --
> Thomas M. Albright
> Albright Enterprises - "The Small Business Solution"
> http://www.albrightent.com/
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************