🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5044

csh for the pc

#5044
From: Gregory R. Simpson The North Coa...
Date: Mon, 02 Dec 1985 03:07
23 lines
1615 bytes
*** 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
Technical Details
Message-ID: <904@ncoast.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!lll-crg!ucdavis!ucbvax!decvax!cwruecmp!hal!ncoast!simpsong

Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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