they can also end up being straight if a border is decided by a higher power for the two nations. the example that I think of here is something I vaguely recall about how the Pope divided Brazil between Spain and Portugal and drew a straight border between the two.

I'm not an expert on south american history though, so if someone cares to correct me on this, feel free.