[comp.sys.amiga] NewShell Script correction

fgd3@jc3b21.UUCP (Fabbian G. Dufoe) (07/29/89)

     The NewShell script I posted recently had a subtle error.  It worked
fine so long as your pathname did not contain embedded blanks.  To handle
pathnames with embedded blanks it requires quotation marks around the
parameters.  A revised script is attached.

--Fabbian Dufoe
  350 Ling-A-Mor Terrace South
  St. Petersburg, Florida  33705
  813-823-2350

UUCP: ...uunet!pdn!jc3b21!fgd3
------------------------------------------------------------------
.key path1,path2,path3,path4,path5
.def path1 "RAM:"
CD "<path1>"
NewShell "NEWCON:0/10/550/190/<path1> Shell"
If NOT "<path2>" EQ ""
   CD "<path2>"
   NewShell "NEWCON:15/22/550/190/<path2> Shell"
EndIf
If NOT "<path3>" EQ ""
   CD "<path3>"
   NewShell "NEWCON:30/34/550/190/<path3> Shell"
EndIf
If NOT "<path4>" EQ ""
   CD "<path4>"
   NewShell "NEWCON:45/46/550/190/<path4> Shell"
EndIf
If NOT "<path5>" EQ ""
   CD "<path5>"
   NewShell "NEWCON:60/58/550/190/<path5> Shell"
EndIf