On Wed, Nov 15, 2000 at 01:18:05PM +0000, Alex Waugh wrote:
> On Tue, 14 Nov 2000, Nicholas Clark wrote:
> Or make the alias$@runtype check for the existance of CGI variables, if if
> any are found the run sungle tasking, else start a taskwindow.
> This would assume that the CGI variables only exist when running a CGI
> script, which is not the case currently with WebJames, but could easily be
> changed.
But you increase the risk of hitting the CLI length limit if you've got
something like
*if Foo then perl %*0 else taskwindow perl %*0
where the condition Foo, the path for perl and %*0 could all be quite long.
And it becomes hard to pass a parameter which is a bare "else"
However, if you make Alias$@RunType a code variable you can solve the
length limit by only returning the text for the wanted version, and as
you're doing the if based on ARM code you can go for a more complex way
of condition checking if needed.
Rather hacky.
Nicholas Clark