[comp.sys.amiga] Bug in script files with embedded tabs...

svermeulen@Janus.MtRoyal.AB.CA (Steve Vermeulen) (03/03/89)

To All and Sundried...

A fellow AMUCker has found a problem with tabs in script files
under 1.3.  The following script (which has a tab just after
the second else statement) demonstrates the problem.  Because
things are going to get messed up in transmission a UUEncoded
version of the script appears below as well.

-------------------------  The script ----------------------------

Echo "execute this twice, anwsering YES one time and NO the other"
Echo "to see the bug with the If Else Endif logic"
Ask "pick yes or no"
If WARN
  Echo "you picked yes"
Else ; good else comment
  Echo "you picked no"
Endif
Ask "pick same as last time"
If WARN
  Echo "you picked yes"
Else    ; bad else comment
  Echo "you picked no"
Endif

------------------- The UUEncoded Script ---------------------

begin 777 bad-if-script
M16-H;R`B97AE8W5T92!T:&ES('1W:6-E+"!A;G=S97)I;F<@6453(&]N92!TI
M:6UE(&%N9"!.3R!T:&4@;W1H97(B"D5C:&\@(G1O('-E92!T:&4@8G5G('=I:
M=&@@=&AE($EF($5L<V4@16YD:68@;&]G:6,B"D%S:R`B<&EC:R!Y97,@;W(@O
M;F\B"DEF(%=!4DX*("!%8VAO(")Y;W4@<&EC:V5D('EE<R(*16QS92`[(&=O_
M;V0@96QS92!C;VUM96YT"B`@16-H;R`B>6]U('!I8VME9"!N;R(*16YD:68*`
M07-K(")P:6-K('-A;64@87,@;&%S="!T:6UE(@I)9B!705)."B`@16-H;R`BC
M>6]U('!I8VME9"!Y97,B"D5L<V4).R!B860@96QS92!C;VUM96YT"B`@16-H4
8;R`B>6]U('!I8VME9"!N;R(*16YD:68*W
``
end

------------------------- The End ----------------------------


Stephen Vermeulen
Author: Express Paint and Spritz
Newsletter Editor of AMUC (the AMiga Users of Calgary)
SVermeulen % Janus.MtRoyal.AB.CA @ UncaNet.BITnet ...or...
SVermeulen % Janus.MRC.AdhocNet.CA @ UncaEdu.BITnet