From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1044c2,fb87ccfc9e8baf0a X-Google-Attributes: gid1044c2,public X-Google-Thread: f678f,fb87ccfc9e8baf0a X-Google-Attributes: gidf678f,public X-Google-Thread: 1103af,fb87ccfc9e8baf0a X-Google-Attributes: gid1103af,public X-Google-Thread: f71eb,fb87ccfc9e8baf0a X-Google-Attributes: gidf71eb,public X-Google-Thread: f66ab,fb87ccfc9e8baf0a X-Google-Attributes: gidf66ab,public X-Google-ArrivalTime: 1995-01-13 02:55:47 PST Path: nntp.gmd.de!borneo!veit From: veit@borneo.gmd.de (Holger Veit) Newsgroups: comp.os.linux.misc,comp.os.os2.misc,comp.unix.osf.misc,comp.os.msdos.misc,comp.os.mach Subject: Re: The big Question Date: 13 Jan 1995 10:55:46 GMT Organization: GMD - German National Research Center for Computer Science Distribution: world Message-ID: <3f5m7i$jap@omega.gmd.de> References: <3ei41l$n8r@portal.gmu.edu> <3es02r$7dl@omega.gmd.de> <3eumm5$5st@portal.gmu.edu> NNTP-Posting-Host: mururoa.gmd.de Xref: nntp.gmd.de comp.os.linux.misc:38008 comp.os.os2.misc:126650 comp.unix.osf.misc:2325 comp.os.msdos.misc:28686 comp.os.mach:3501 In article <3eumm5$5st@portal.gmu.edu>, scoile@osf1.gmu.edu (Steve "Stevers!" Coile) writes: |> Holger Veit (veit@borneo.gmd.de) wrote: |> [...] |> >|> If you have the TEMP environment variable set, the system should be using |> >|> it for such temporary files, rather than your current directory. |> > |> >Of course, there are still some executables that want to have the |> >environment variable TMP, and there are plenty programs that assume that |> >TEMP points to c:\tmp, hence they reserve space for 6 characters for the tmp |> >path in some internal buffer only, and other programs rely on ending the |> >tmp path with a '\'. |> |> Those are all flaws with the programs themselves, not DOS. These are flaws that were introduced by the anarchy that DOS introduced. Every Unix (except turnkey systems) comes with a /usr/include, /tmp, /bin, /etc directory structure and a set of libraries, notably libc.a (libs and header files and various utilities are missing in turnkey systems). There is also a native C compiler and assembler, perhaps not portable among different platforms, but suitable to compile stuff for the particular system. This avoids the problem that every hacker company invents their own object file format, library structure and header layout, for instance, and leads to a considerably constant and reliable platform. In DOS the only constant factor is that there are config.sys and autoexec.bat in the root directory of the drive. There is even no convention where to put the native DOS executables (attrib, join, tree, edlin, and that stuff) to; some have it under \DOS, \PCDOS, \SYSTEM, whatever. I have even seen systems where they were put in the root directory and eventually the genius who did that came up saying that the system refused to add more programs. I have never seen this with Unix. Some well-known structuring of the software, and well-defined environment variables (TERM, HOME, USER, PRINTER, PWD, SHELL) have their advantage. Nota bene: there is no TMP environment variable in Unix. Guess why. SHELL is a different issue with DOS. There is no publicly known agreement when to use SHELL and when COMSPEC, so you waste valuable environment space to define both, because programs use them inconsistently (check out the DOS native utilities for some incompatibilities there). It is a cheap complaint to say it's the programmers who produced shitty programs that don't follow some conventions, if there are none, and even the OS writer cared the hell about structure. We had this debate already with the use of wildcards, and anyone except you agreed there is a discrepancy. |> |> > Almost every compiler claims the environment variables |> >LIB and INCLUDE for itself, making it almost impossible to have more than |> >one compiler properly installed. |> |> Short sightedness on the part of the compiler developers, not DOS. Are |> you telling me you can have multiple definitions of LIB and INCLUDE |> in your Unix environment? I don't think so. There are no LIB and INCLUDE environment variables in Unix. There are, however, well-known and well-defined conventions for a system where stuff belongs to. Example: System libraries belong in /lib (sometimes it is a link to /usr/lib actually), X11 stuff can usually found in /usr/bin/X11, /usr/lib/X11, /usr/include/X11, but even if it is elsewhere for instance for disk space reasons, there are links to the actual location. And if you recompile a GCC for Unix and put it in /usr/local/bin, it is *itself* that knows where its header and library files are for the particular system. |> |> How does Gcc handle LIB and INCLUDE in DOS? GCC_INCLUDE, GCC_LIB, or GNU_LIB, GNU_INCLUDE, or LIB, INCLUDE, or GCC_DIR, or GCC_FILES; I have seen any useful and unusable combination with gcc, as well as with other compilers. |> >There are no naming conventions for files, libraries, directories, so there |> >is pure anarchy in DOS (unless you spend the time and install everything |> >properly, and write scripts that locate the real executable and sets up the |> >environment as required). |> |> There most certainly naming conventions, just not Unix naming conventions. |> Learn the difference. Oh, you mean the 3 char extensions. So then tell me whether FOO.DOC is a plain text file, or a Winword (winword 1 or 2 or 6 or whatever?) file, or WordPerfect file? Is FOO.EXE a real executable or is it a device driver (like EMM386.EXE)? Is FOO.HLP a Windows help file, a text file, or any other format that just contains some help information? What then is the extension .1ST, like in README.1ST? Can I dare to engage my *add-your-preferred-wordprocessor* to load this file? Which version of unpacker does my FOO.ZIP require? Is it still compatible with the old pkzip 1.1 I have? And this nifty FOO.C_ that is supposed to be a compressed example from the MS-C compiler, which expand shall I use to unpack it? The expand.exe from Windows doesn't work. I know of at least 4 incompatible versions of expand.exe over the time (but probably you haven't encountered so many, unless you bought various MS products in the past). And have you an idea what FOOBAR.DLL is? Yes, the extension says it is a DLL, but for Windows, or DOS, or relic from the last attempt to install OS/2 or WinNT, and which the hell utility does this DLL belong to? Convention is to stuff everything into \windows or \windows\system nowadays, which I would not consider a really clever way of dealing with software packages. |> > Every program that even just does a fart, |> >claims space in the PATH variable which is an extremely limited resource. |> |> True, but that's arrogance on the developers' parts, and it can be |> avoided if you refuse to allow the installation program take control |> of your system (I, myself, prefer to make the choices myself so that |> I know how my system is set-up). You and I surely know, but millions of DOS users are not even knowledged enough to understand the structure of config.sys and autoexec.bat, and are helpless, if the program that has just been installed won't run, since the maximum path length has been exceeded and the newly added directory won't be searched. Even more, Windows has the bad manner to add itself to the front of the path, and thus shifts the directories at the end of the path variable outside the recognized area. You get Windows, but obscurely lose the access to other utilities that formerly worked. Again it is a lame excuse to condemn the programmers, they cannot behave better that the OS allows or forces them to. Why is the path length limited? Why is there a restriction in the length of the remainder of a DEVICE= line in config.sys? Why should any programmer care about good structuring if the OS is a cardhouse and the OS programmers wrote the config.sys parser with char line[80]; while (...) { gets(line); do_something(line); } (provided stdin is redirected to config.sys, just to demonstrate the insecurity of gets vs. fgets). |> |> >|> >UNIX provides security measures to prevent one user from intervening another, |> >|> >by password protection to prevent unauthorized access to user accounts, by |> >|> >storing attributes to limit access to user (and system) files, and by |> >|> >memory protection to prevent user processes from intervening one another. |> >|> |> >|> All to deal with issues that never come up in a DOS environment. |> >These issues simply apply if you think of exporting file systems through |> >Windows for Workgroups, for instance. |> |> WfWg handles all that. DOS doesn't need to because with WfWg, it *can't*. |> What's your point here? Perhaps it exports a directory securely (securely is at most readonly) to a different host, but if I want to do damage, I do it locally. Everyone can use the attrib command in conjunction with del to cause the maximum amount of damage. Under Unix, attrib=chmod and del=rm, but the important difference is, that chmod will refuse to touch any file that does not belong to me. Likewise, if you export a file to some host with WfWg for writing, than any weenie on the other side of the net connection has control to it as there is no way to find out who is there at the remote PC. This is the slight difference for NFS, for instance. And again, the "user" factor applies here. You need to be knowledged enough to do the OS stuff that could improve the situation (like management of exporting things, restructuring config.sys and the path, etc.). Users are people who want to do some real thing with their PC, not fight against the OS. You cannot expect them to understand and circumvent the problems of a half-baken OS (one should have expected that DOS would have become cooked over the decade it exists, but it just became a museum of incompatible, outdated, half-hearted patches, that will need to be patched again by additional software like WfWg. Recently I heard this museum will be mainly renamed to Win95 (or Win96, I don't remember) and gets another layer of paint on its surface. |> >They apply even more severe, if the PC is accessible - and must be - |> >by several persons. If you mainly think of a PC for home use, it is not |> >so much an issue unless you have clever children who understand how |> >they can remove your whole textprocessing software in order to acquire the |> >necessary 10MB diskspace to install DOOM. |> |> If you have kids willing to do that then you have more problems than |> just inadequate operating system security measures. It just serves as an example, where it would be useful to have some more protection. But users don't even think of such an improvement as they have been told for a decade that they don't need it in DOS. It is not children's behaviour that is to be discussed here. |> Besides, how many *home* users do you think are going to use a password |> to guard their machine *at home*? The point is: does DOS have such a facility at all in its kernel or supplied code? Or do you have to buy some additional software (as a most simple level a screen saver)? And then: "Daddy, what is the screen saver password, we want to play pacman?" (or we will use the big red button if the system is locked). -- Dr. Holger Veit | INTERNET: Holger.Veit@gmd.de | | / GMD-SET German National Research | Phone: (+49) 2241 14 2448 |__| / Center for Information Technology | Fax: (+49) 2241 14 2342 | | / Schloss Birlinghoven | Pentium - the first real | |/ 53754 St. Augustin, Germany | processor featuring the new | *** RISK technology ***