

Its not just GPL. MPL, BSD work this way as well. And the original post refers to open source, not “code available to all”. Come back with a commonly used open source license that enforces what you’re describing and maybe you’ll have a point. Otherwise, why are we arguing about things that can just be looked up?
The only one of your sources that directly contradicts what I am claiming is the Wikipedia line about the source being publicly available. But that is inaccurate. All the major open source licenses require source code be available to anyone who has access to the executable form of the software - not the public in general. So, if some FOSS software is available to download on the Internet without any restriction on its access, then so must the source code. Most FOSS software is distributed this way.
However, if you write software under an open source license, you are not required to share that software with anyone. The license requires you to distribute the source ALONG WITH the software. But it doesn’t require you to make the software freely available to everyone, or anyone.
Tying back to my original point, which has been derailed by myriad people who refuse to read before thinking they know things, I was saying that we don’t need exceptions for military software because it can be licensed as open source without that code being handed over to our enemies. But requiring it to be open source would, for example, preclude the DoD from building kill switches into the F-35s that they sell to our allies, because they’d be required to share the design of the plane’s control systems along with the product - again, only to the people who receive a copy of the product - not to the public at large.