# fileutils, sh-utils, and textutils have all been combined into coreutils.
# Unless you specifically need to use the individual old packages, you should
# move to coreutils instead of installing/upgrading sh-utils.
# The latest version of sh-utils that was created before coreutils was
# released was version 2.0.15, according to the sh-utils home page. It's
# available here:
# ftp://alpha.gnu.org/gnu/coreutils/sh-utils-2.0.15.tar.bz2
# ...but don't be surprised if it goes away in the future. Based on the
# fact that this version is available at alpha.gnu.org and not ftp.gnu.org,
# that would normally indicate that it's an alpha or beta version.
# I haven't used sh-utils in a long time, if you find anything broken in
# here, let me know (e-mail link is at the bottom).
# GNU shellutils (sh-utils) 2.0
# =============================
# sh-utils 2.0 already comes with (at least) Slackware 8.0, 8.1, and 9.0
# It was released August 14, 1999. Slackware 7.0 was released in November
# of 1999, I haven't checked, but it was probably included that far back
# too.
cd
test -f installed/sh-utils-2.0.tar.gz && mv installed/sh-utils-2.0.tar.gz .
test ! -f sh-utils-2.0.tar.gz &&
wget http://ftp.gnu.org/gnu/sh-utils/sh-utils-2.0.tar.gz
# Don't 'removepkg sh-utils' after 'make' below. That would kill echo
# and such, which 'make install' requires to exist.
mkdir -p -m 0700 src
cd src
tar xzvf ~/sh-utils-2.0.tar.gz
cd sh-utils-2.0
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --disable-nls
make
make check
# Here are the differences between the Slack package and the source. Left
# side is Slack, right side is source. Above, we made it exactly like
# Slack's so it can be a total replacement.
#
# /bin/date /usr/bin/date
# /bin/echo /usr/bin/echo
# /bin/false /usr/bin/false
# /bin/pwd /usr/bin/pwd
# /bin/sleep /usr/bin/sleep
# /bin/tty /usr/bin/tty
# /bin/true /usr/bin/true
# /bin/uname /usr/bin/uname
# /usr/sbin/chroot /usr/bin/chroot
#
# Also, Slack leaves out hostname (in favor of the one in net-tools) and
# su (also in shadow).