[Coco] [coco] Shell Scripts

Bob Devries devries.bob at gmail.com
Tue Dec 18 19:23:25 EST 2007


Someone said:

>

> deldir test

> d

>


The problem is, this script can go horribly wrong *if* there is a
sub-directory inside the directory to be deleted, because the deldir will
ask the question again, and grab the next character from the script file for
its answer.


--
Regards, Bob Devries, Dalby, Queensland, Australia

Isaiah 50:4 The sovereign Lord has given me
the capacity to be his spokesman,
so that I know how to help the weary.

website: http://www.home.gil.com.au/~bdevasl
my blog: http://bdevries.invigorated.org/

----- Original Message -----
From: "Robert Gault" <robert.gault at worldnet.att.net>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Wednesday, December 19, 2007 9:32 AM
Subject: Re: [Coco] [coco] Shell Scripts



> tim lindner wrote:

>> Robert Gault <robert.gault at worldnet.att.net> wrote:

>>

>>

>>>This initially did not work for me, error 215. Now it is working and I

>>>think the trick is there must be another line in the script. The next

>>>line can be anything, blank or text, but it needs to be there.

>>

>>

>> When you tired it, and got the error 215, did the directory get deleted

>> sucessfully?

>>

>> Put another way...

>>

>> Did the deldir command report the error, or did the parent shell report

>> an error?

>>

>

> deldir test

> d

>

> Hmmm, just tried this again and now it works with or without an extra

> line. I can't reproduce the earlier result. However, of the suggestions

> posted (except for the new command) this is the only syntax that works

> with the current shell+

>

> --

> Coco mailing list

> Coco at maltedmedia.com

> http://five.pairlist.net/mailman/listinfo/coco





More information about the Coco mailing list