Cygnus, for example, produces some Free Software as well as some non-free. AbiSource also produces Free Software. The fact that programmers need to eat is still not completely solved. I believe however, that as humans, the current situation of commercial software companies is not good. Looking at other sciences, I do not see a refusal to share.
Science is far from perfect, but scientists work together to advance and improve their knowledge.
To those interested, I would like to point you to an intriguing web page. I don't understand this completely, nor do I think I agree with everything here, but rightcopy from FIG looks interesting. GNU and Linux GNU is a recursive acronym standing for G NU's N ot U nix. GNU is a project devoted to creating the GNU system, a Unix replacing system of Free Software including an operating system and many applications. The GNU project was started in the 80's by Richard M. Stallman and it is nearly complete thanks to the help of many programmers from all parts of the world.