davidgiven / cowgol

A self-hosted Ada-inspired programming language for very small systems.
BSD 2-Clause "Simplified" License
247 stars 20 forks source link

cowfe -I parameter does not accept a directory path not ending in / #112

Closed retrac0 closed 3 years ago

retrac0 commented 3 years ago

This may not really be a bug, but it perplexed me for a couple minutes.

bin/cowfe-6502.nncgen.exe  -Irt/ -Irt/bbct/ examples/helloworld.cow helloworld.cob

runs fine. But:

bin/cowfe-6502.nncgen.exe  -Irt/ -Irt/bbct examples/helloworld.cow helloworld.cob

does not.

davidgiven commented 3 years ago

That's actually intentional --- it's to prevent the compiler from needing to know what the directory separator is. (Unix uses /, DOS uses \, CP/M doesn't use anything...) It should be documented, somewhere.