Re: Bitten by Bind
> I can see what happened. When the binder checks for
> command-line options, it's very permissive. It uses
> match() rather than equal(), so actually any option
> you type containing the substring "OUT" will be accepted as
> the -OUT option which specifies a target file to overwrite.
> I'll do it a safer way for the next release.
> I was thinking that people might sometimes misspell an option
> slightly, and rather than complain, I'd just accept it.
> e.g. they might say "-console" instead of "-con".
Perhaps the best option would be:
if match( "-con", lower(argv) ) = 1 then
-- do stuff here
end if
~Greg
|
Not Categorized, Please Help
|
|