home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.misc
- Path: sparky!uunet!grebyn!daily!richk
- From: richk@grebyn.com (Richard Krehbiel)
- Subject: Re: tell me i'm wrong (braindead design in os2)
- In-Reply-To: ucbked@athena's message of 19 Nov 1992 18:41:17 GMT
- Message-ID: <1992Nov21.154600.16728@grebyn.com>
- Lines: 37
- Sender: richk@grebyn.com (Richard Krehbiel)
- Organization: Grebyn Timesharing
- References: <1egn4dINNklu@agate.berkeley.edu>
- Date: Sat, 21 Nov 1992 15:46:00 GMT
-
- In article <1egn4dINNklu@agate.berkeley.edu> ucbked@athena (Earl H. Kinmonth) writes:
-
- > a) file names are always shown in upper case. is os2 case insensitive?
- > is upper case required? do ibm programmers have six fingers (one for
- > the shift key)? are they still thinking in terms of the o26/o29
- > keypunches and bcd coding? reading os2 takes me back to my first
- > programming experiences in the early 1960s. i thought os2 was a modern
- > system oriented to the future....
-
- The FAT file system still stores files in all upper case. HPFS will
- preserve the case of the file name you give it, but will not observe
- case when matching existing files.
-
- > b) path separation is always shown with the back(assward) slash (\). is
- > this hard wired or can it be switched (as in drdos, early msdos)? do
- > system calls accept both / and \ as in dos or is one stuck with this
- > braindead convention? if nothing else it makes programming in c that
- > much more troublesome?
-
- The system calls accept either \ or / for path separator, but the
- command shell wants back slashes. You can use the shareware shell
- 4OS2, and it will accept forward slashes for the filename separator in
- some cases, anyway.
-
- > c) os2 uses the braindead and redundant CR/LF convention from msdos. do
- > os2 utilities work the text files that have only line feeds or must one
- > run unix files through a filter? programming utilities to work with
- > either convention is trivial, but for some reason (ideological?) it is
- > not done (cpp in Borland c and c++ is a classic example of user-hostile
- > programming).
-
- I'm not sure about all the utilities. I know when you TYPE a file
- with only LF for newlines it doesn't appear correctly. Emacs works
- correctly with either (CR/LF or LF newlines). The stuff I've written
- with emx/gcc works fine when reading either, and you can choose to
- write DOS-compatible text files or Unix-comnpatible text files (by
- calling them "binary mode").
- --
- Richard Krehbiel richk@grebyn.com
- OS/2 2.0 will do for me until AmigaDOS for the 386 comes along...
-