3 ms·
I could have easily put Korn in his place if I had been that Microsoft person. Ah, but no; I would end up saying some things that would have been too ironic to
by kazinator 11y ago
I could have easily put Korn in his place if I had been that Microsoft person.
Ah, but no; I would end up saying some things that would have been too ironic to come from a Microsoft person, such as:
- why are you Unix people making a POSIX standard which covers the shell command language, if you're going to insist on one reference implementation being used on everyone? Just dump the source code listing of that into a document, add a few comments here and there, and call it the standard.
- isn't it healthier to have multiple implementations rather than a "monoculture"? Do we all use the same C compiler?
- the MKS shell could be made to diagnose and reject the use of Korn shell extensions, helping the programmer write a more portable script.
- wait, did you say your name was Korn, or Bourne? I didn't quite hear you from the back. If you're Mr. Korn, I would appreciate it if Mr. Bourne would now stand up, if present, and ask you why you don't just use the shell with his name on it.
- Sir_Cmpwn 11y ago>why are you Unix people making a POSIX standard which covers the shell command language, if you're going to insist on one reference implementation being used on everyone? Just dump the source code listing of that into a document, add a few comments here and there, and call it the standard. Any shell that isn't compatible with the _reference_ implementation of that shell is flawed.
- kazinator 11y agoThe POSIX standard that came into effect in 1990 doesn't contain or assert any reference implementation. A reference implementation accompanying a document can be at odds with the specification. If a document says that a reference implementation shall be held correct if there is any discrepancy, then specification is greatly diminished in value. It's obviously just a best effort to describe the reference implementation, and not a forceful standard. What if a buffer overflow is discovered in the reference implementation? Everyone must have the same one to be compatible?
- Sir_Cmpwn 11y agoWell, your comments are valid. To be fair, though, if Microsoft was truly aiming to be compatible, they'd implement POSIX and you could use whatever shell implementation you wanted to.
- kazinator 11y agoBut that environment would have to provide a shell that users would need in order to build whatever shell they want. In the discussed scenario, it appears Microsoft were working with the MKS vendor, relying on them to provide compatibility. Microsoft eventually bought something called OpenNT in the late 1990's and renamed it Interix. Microsoft also had their own licensed and branded AT&T Unix called Xenix in the 1980's: https://en.wikipedia.org/wiki/Xenix https://en.wikipedia.org/wiki/Xenix They helped make Unix popular: Xenix had the biggest installed base among Unixes. In the mid 1990's, I visited a computer animation school which had a classroom for learning Unix. It was equipped with some vanilla PC box which ran Microsoft Xenix, and about a dozen terminals attached to it. Students would sit at these terminals and follow the instructor along, running shell commands, editing with vi and so on.
- vezzy-fnord 11y agoYou think these are zingers, but they're really just worthy of cringing. a) Red herring. No one is talking about a reference implementation of Unix shells, but about Korn shell compatibility in particular. b) Red herring. Don't imply it's a Korn or Korn-compatible shell - that's the issue here. c) Red herring. Though the conversation was never recorded, it's implied that nothing was said about "portability", per se, but in particular compatibility with the Korn shell language specification. d) Red herring and an insult. Stephen Bourne didn't write the first Unix shell. Ken Thompson did. Is your implication that no one should iterate or create new designs? Microsoft creating a Unix shell is fine, but the issue at hand is that it wasn't a Korn shell like they claimed it to be.
- kazinator 11y agoMicrosoft wasn't creating anything; they were working with MKS: https://en.wikipedia.org/wiki/MKS_Inc https://en.wikipedia.org/wiki/MKS_Inc MKS claimed to have a Korn-shell workalike, AFAIR. > The MPM asserted again that the shell was pretty compatible and should work quite well which sounds reasonable, and isn't an assertion that MKS has the Korn shell in it such that it is 100% compatible. (And could anything even be 100% compatible, if not running on Unix? The Korn shell source ported to DOS woudln't be 100% compatible with the Korn shell, just "pretty compatible" so that many things work "quite well".) They probably had some good reasons to with MKS, because in fact it isn't easy to port a shell: not to the DOS environment. Or Windows. The minimal example of doing this reasonably well might today be the MSYS environment used by MinGW, which has to re-create significant infrastructure (a whole C library from the ground up and other things). Maybe Microsoft also had favorable licensing with MKS, avoiding the AT&T license.