Source Code for "Basic" Utilities

Source Code for "Basic" Utilities

Post by Benjamin Esh » Wed, 05 Sep 2001 10:36:31



Can anyone point me to where I might be able to download source code
for some of the more "basic" UNIX utilities such as ls, more, who, etc.?
Many thanks.

--
Benjamin Esham

"Two wrongs don't make a right, but three lefts do."

 
 
 

Source Code for "Basic" Utilities

Post by Paul Pluzhniko » Wed, 05 Sep 2001 11:36:04



Quote:> Can anyone point me to where I might be able to download source code
> for some of the more "basic" UNIX utilities such as ls, more, who, etc.?

Any number of the GNU sites:

"ls" is part of fileutils
http://www.gnu.org/software/fileutils/fileutils.html

"who" is part of shellutils
http://www.gnu.org/software/shellutils/shellutils.html

less is "more"
http://www.gnu.org/software/less/less.html

 
 
 

Source Code for "Basic" Utilities

Post by Simon Marches » Wed, 05 Sep 2001 17:34:09


Is there a C version of "rev" without "fgetln()" - the ones I've found so far
(FreeBSD/OpenBSD) both use this function which I don't have under Cygwin. I
could rewrite their libc but I'd prefer not to! Any ideas?



> > Can anyone point me to where I might be able to download source code
> > for some of the more "basic" UNIX utilities such as ls, more, who, etc.?

> Any number of the GNU sites:

> "ls" is part of fileutils
> http://www.gnu.org/software/fileutils/fileutils.html

> "who" is part of shellutils
> http://www.gnu.org/software/shellutils/shellutils.html

> less is "more"
> http://www.gnu.org/software/less/less.html

 
 
 

Source Code for "Basic" Utilities

Post by Nils O. Sel?sda » Wed, 05 Sep 2001 21:31:22



Quote:> Is there a C version of "rev" without "fgetln()" - the ones I've
found so far
> (FreeBSD/OpenBSD) both use this function which I don't have under
Cygwin. I
> could rewrite their libc but I'd prefer not to! Any ideas?

rev is part of util-linux, which you should find at the GNU site,
or grab a source rpm, searching for util-linux at www.rpmfind.net