From: Robin Rosenberg Date: Thu, 08 Feb 2007 21:15:50 GMT Subject: Re: MinGW binary installer available Message-ID: <200702082215.50389.robin.rosenberg.lists@dewire.com> In-Reply-To: <45CADAAA.74058D21@eudaptics.com> torsdag 08 februari 2007 09:09 skrev Johannes Sixt: > > @echo off > rem () { :; } ; : \ > sh %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 > rem ; : \ > exit /B %ERRORLEVEL% > > > in place of the usual "#!/bin/sh". It requires you to have a command > named @echo.exe in the path that is a noop. Also, it is limited to 9 > command line arguments. > > What a hack! (*) Yes... I suggest you use %* to pass on all arguments. It works with more than 10 arguemtns, including quoted arguemnts (presumably whatever limit windows has) -- robin