Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro » source of 'cut' rewrite posted to net.sources
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
source of 'cut' rewrite posted to net.sources [message #73859] Sun, 26 May 2013 20:20 Go to next message
ignatz is currently offline  ignatz
Messages: 32
Registered: March 2013
Karma: 0
Member
Message-ID: <810@ihuxx.UUCP>
Date: Sun, 12-Aug-84 20:48:56 EDT
Article-I.D.: ihuxx.810
Posted: Sun Aug 12 20:48:56 1984
Date-Received: Mon, 13-Aug-84 03:31:46 EDT
Organization: AT&T Bell Labs, Naperville, IL
Lines: 21

It was recently pointed out to me that some versions of
Unix(Tm) don't have the cut(1) command.  So, I got busy on
my Osborne-1, using Aztec 'C', and recreated the command.

There is positively no proprietary code in the command; it may
be used by anyone without violation of any agreements.

The command and man page are posted as a shar archive on
net.sources.  Its behavior has only been tested on the Osborne,
and on a VAX 11/780 running System V.  (Berkley people, please
let me know what, if anything, has to be done to twig it to your
system)

Please mail any bug reports (fixes, too?) directly to me.

Finally, although the man page refers to 'paste(1)', I haven't
tackled that one yet.  I suspect that any system without 'cut' is
also without 'paste'---any other volunteers??

		Dave Ihnat
		ihuxx!ignatz
Re: source of 'cut' rewrite posted to net.sources [message #73862 is a reply to message #73859] Sun, 26 May 2013 20:20 Go to previous message
ignatz is currently offline  ignatz
Messages: 32
Registered: March 2013
Karma: 0
Member
Message-ID: <812@ihuxx.UUCP>
Date: Mon, 13-Aug-84 12:44:07 EDT
Article-I.D.: ihuxx.812
Posted: Mon Aug 13 12:44:07 1984
Date-Received: Tue, 14-Aug-84 01:52:43 EDT
References: <810@ihuxx.UUCP>
Organization: AT&T Bell Labs, Naperville, IL
Lines: 19

Ahem...a minor oversight on my part, to those of you who may
wish to use my version of 'cut' on CP/M systems...I have a
twiddled version of ZCPR on my Aztec disk that *doesn't* convert
the arguments to upper case on the command input line.  Thus,
the program, as written, will not accept command line arguments
on a system that performs upper-case conversion.  The solution is
either to 'tolower()' the command-line characters in the switch
statement, or to add an upper-case check for each letter. (The
latter is the simplest method, since there aren't a lot of options).

Also, for those with Aztec, in the course of tweaking the file to
include the Unix(Tm) environment, I accidentally added a semicolon
on the end of the line defining the TAB character.  This resulted
in the delimiter declaration having two semicolons after macro
expansion; a legal 'C'-ism, giving a null statement, but Aztec 'C'
went bonkers when I did a recompile to check the changes.

-Dave Ihnat
 ihuxx!ignatz
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: another *parity* argument
Next Topic: Re: Wanted: Transputer info - (nf)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Dec 22 03:58:43 EST 2024

Total time taken to generate the page: 0.01956 seconds