From: takaoueda@... (Takao Ueda) Date: 2004-11-21T05:33:08+09:00 Subject: Re: Comment line in Erb Thank you Carlos, When I changed \ruby\bin\erb following your advice and changed \ruby\bin\erb.bat to @echo off E:\ruby\bin\ruby.exe "E:\ruby\bin\erb" "--skip-first" %2 %3 %4 %5 %6 %7 %8 %9 then src = $<.read became an endless loop. Therefore, I simply added src.sub!(/\A#!.*\n/, "") to the original \ruby\bin\erb and kept others intact. Then it worked.