[GRASS5] Re: [GRASSLIST:2310] Re: Fixing non-edge-matched DEMs (fwd)

  I tried to find this bug report in bug-tracker and remove it, but someone
beat me to it. Thanks.

Rich

---------- Forwarded message ----------

Maybe having a long day? Try using "output" instead of "ouput" :wink:

  Yes, actually. A very long day. Thank you.

Note: This is a shell script that only recognizes abbreviations:
   input ::= { "i" | "in" | "input" }
   output ::= { "o" | "out" | "output" }

  I had tried "ou" at first, but that wasn't acceptable. I'll try again in a
few minutes.

  Long ago and far away, at the University of Illinois in 1973, I had a bug
in a FORTRAN program I could not find for a week (reading output on
green-barred paper, of course). The output was one of four results, but I
could not predict which one of the four; none of them was the correct
output. I finally took copies of runs down to the computer center help desk
and asked the gurus there to look for it. They spent two days at it without
finding the cause.

  Then, suddenly, the error became visible: in a FOR loop, I had
inadvertently type a 'I' (eye) rather than a '1' (one). So the loop read,
FOR I = I to 100 and the results depended on the initial value of I. Because
we all knew the format of a FOR statement in FORTRAN, we saw only what we
expected to see, not what was really there.

  My point is that by last evening, I didn't see the typo, even when I
retyped it myself each of a half-dozen times.

Mea culpa! And thanks for pointing it out to me.

Rich

Dr. Richard B. Shepard, President

                       Applied Ecosystem Services, Inc. (TM)
            2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
+ 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
                 Making environmentally-responsible mining happen.

On Wed, Aug 08, 2001 at 06:22:15AM -0700, Rich Shepard wrote:

  I tried to find this bug report in bug-tracker and remove it, but someone
beat me to it. Thanks.

that was me :slight_smile:

[...]

> Note: This is a shell script that only recognizes abbreviations:
> input ::= { "i" | "in" | "input" }
> output ::= { "o" | "out" | "output" }

  I had tried "ou" at first, but that wasn't acceptable. I'll try again in a
few minutes.

O.k. I have changed the parsing in CVS to:
        case $i in
                i=*|in=*|inp=*|inpu=*|input=*)
                        INMAP=$wildcard;;
                o=*|ou=*|out=*|outp=*|outpu=*|output=*)
                        OUTMAP=$wildcard;;

BTW: Is there a more simple way to write this?

Cheers,

Markus

PS: All mailing list are migrated now. I hope everything is fine.