[Mono-dev] Make System.IO.Ports work on UNIX systems other than Linux

Robert Nagy robert at openbsd.org
Thu Apr 22 14:56:19 EDT 2010


Yes that would solve the problem but currently every *BSD, Linux, Solaris, etc.
are identified as 'Unix'.
Using an universal regex would be the best of course, but linux uses so many different
devices names on different architectures that it's gonna be a nightmare.

On (2010-04-22 19:48), Andreas Färber wrote:
> This seems overly complicated to me. Both the variable naming and
> cross-assignment and the first-add-then-remove approach.
> 
> I think we should either try to find one universal regex like /dev/
> tty[A-Z]*[0-9]+ or initialize the regex based on platform. Either
> way we'd hopefully have one regex we could use to add to the list
> and could drop the second loop.
> 
> Platform identification could be done by recognizing a non-Windows
> platform and p/invoking uname.
> 
> Andreas
> 


More information about the Mono-devel-list mailing list