[Coco] Source Code for ls

William Carlin whcarlinjr at gmail.com
Wed Sep 9 23:33:06 EDT 2020


Bill,

Thank you for searching for the source code for ls.  I have source code for
a different version of ls that was developed in 1990 by Chris Strickland.
I made modifications to it in 2016 to make the long format listing Y2K
compliant.  It is also modified so that if the file or directory name is
long enough to run past the 80th column on an 80x24 screen it will print a
backslash and then on the next line print the file or directory name
preceded by a plus symbol.  The executable has been renamed to ls2 so as
not to confuse it with the other ls.  I have attached the archive with my
modifications in case you or someone else in the list are interested.  I
also took care to keep Mr. Strickland's original copyright notice intact
and documented my changes with comments at the appropriate places within
the source code

William Carlin

On Fri, Sep 4, 2020 at 4:46 PM Bill Pierce via Coco <coco at maltedmedia.com>
wrote:

> William, I searched my archives for the "LS" source but found various
> versions that were not the same as the one you describe. I did find the
> exact same binary as you (same crc), but no source.
> A quick attempt at disassembling shows it was written in "C" and would be
> VERY tedious to disassemble.
> Sorry I couldn't be of more help
> Bill
>
>
> -----Original Message-----
> From: William Carlin <whcarlinjr at gmail.com>
> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> Sent: Fri, Sep 4, 2020 2:10 pm
> Subject: Re: [Coco] Source Code for ls
>
> Thanks.  That would be fantastic Bill.
>
> On Thu, Aug 27, 2020 at 7:34 PM Bill Pierce via Coco <coco at maltedmedia.com
> >
> wrote:
>
> > I'm pretty sure I have it somewhere. Long ago (Delphi days), a friend and
> > myself renamed "D", so were had a one letter dir. I know, it sounds silly
> > but believe me, after you get used to typing "d /dd" for so many years,
> > it's a hard habit to break.
> > I'll look through my sources and see if I can find it
> >
> > Bill
> >
> >
> > -----Original Message-----
> > From: William Carlin <whcarlinjr at gmail.com>
> > To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> > Sent: Thu, Aug 27, 2020 4:07 pm
> > Subject: [Coco] Source Code for ls
> >
> > Does anyone have the source code for the command ls?  I want to bring
> this
> > useful and feature packed program into the 21st century by making it Y2k
> > compatible.  Currently ls does not understand creation or modify dates
> past
> > 1999. Here are the details:
> >
> > {N2|03}/DD:ls -?
> > Usage: ls [[-[bchilrst<dfa><icre>e<ntac>]] [fn]] ...
> > options:                            -do - effect o on all dir entries
> >  -c - combine dirs and files      -fo - effect o on all file entries
> >  -h - show hidden files.          -ao - effect o on all entries
> >  -i - omit subdirectory indent'n.    o: i=ignore, c=vert. column,
> >  -l - same as -ae                        r=rows, e=extended info.
> >  -r - recurse for subdirectories  -eo - set emphasis mode o:
> >  -s - don't sort entries              o: n=none, t=CoCo text,
> >  -t - show section titles                d=DMP, a=ansi, c=CoCo colors.
> >  -u - case sensitive wildcards    -w# - set device width to #
> >  -p - flip directories over files -b  - no banner
> > fn is either a directory or a filename to match in a directory.
> >  The wildcards * and ? are allowed in a filename listing.
> > ls, placed into PD 8-89 by Jon Howell.
> > Error #001 - Unconditional Abort
> >
> > {N2|03}/DD:ident /dd/usr/bin/ls
> >
> > Header for:  ls
> > Module size: $3056    #12374
> > Module CRC:  $C778A8 (Good)
> > Hdr parity:  $4E
> > Exec. off:  $0019    #25
> > Data Size:  $0752    #1874
> > Edition:    $02      #2
> > Ty/La At/Rv: $11 $81
> > Prog mod, 6809 obj, re-en, R/O
> >
> > Thanks,
> >
> > William Carlin
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > https://pairlist5.pair.net/mailman/listinfo/coco
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > https://pairlist5.pair.net/mailman/listinfo/coco
> >
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ls2.lzh
Type: application/octet-stream
Size: 25327 bytes
Desc: not available
URL: <https://pairlist5.pair.net/pipermail/coco/attachments/20200909/9d0a4216/attachment.obj>


More information about the Coco mailing list