Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ncoast.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!ucdavis!ucbvax!decvax!cwruecmp!hal!ncoast!simpsong From: simpsong@ncoast.UUCP (Gregory R. Simpson @ The North Coast) Newsgroups: net.micro.pc Subject: csh for the pc Message-ID: <904@ncoast.UUCP> Date: Sun, 1-Dec-85 22:07:50 EST Article-I.D.: ncoast.904 Posted: Sun Dec 1 22:07:50 1985 Date-Received: Sat, 7-Dec-85 16:40:58 EST Distribution: net Organization: Cleveland Public Access UNIX, Cleveland, OH Lines: 23 *** Happy Thanksgiving Line-eater *** In the source distribution for the public domain "csh" for the pc, there is a program "ls.c" It was written for the Aztec C compilier. Being a microsoft man, I made the following changes, 1) I made sysint into "spawnv", 2) I made rindex into index and tacked on a simple index routine. which returns the location position of a string within a string. (apparently aztec includes both index, and rindex, I didn't know the difference...) I compiled it useing cl -DMAIN ls.c, and presto ls.exe, the problem is that the first 2 characters are lost. Thus the directory listing of a directory containing "Games" shows only "mes" Has anyone else made this work properly under the Microsoft C compiler? I am really sick of the MS-DOS dir command. (especially all of those capital letters :-) ) Please mail to me and I will summarize, or post if you think it is of general interest. Greg Simpson decvax!cwruecmp!ncoast!simpsong or simpsong@case.CSNET