Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/bin/sh/funcs
Module Name: src
Committed By: kre
Date: Wed Apr 9 13:44:12 UTC 2025
Modified Files:
src/bin/sh/funcs: cmv dirs login newgrp popd pushd suspend
Log Message:
Modernise these (unused) functions
Much of what is here is truly ancient. It isn't used as
part of the build (never installed anywhere) so are only
available from src/bin/sh/funcs which means that in practice
no-one ever sees or uses any of this.
A notable example is the provided 'suspend' function, which
has been using "set +j" to turn off job control all this time.
That was the old (original ash) name for what is now the 'm'
option ... it was changed (by Berkeley CSRG) in July 1992
(approaching 33 years ago), which means the suspend function
provided here hasn't been used in at least 33 years.
(Since "suspend" is now provided as a sh builtin, the function
here is no real use anyway).
Still, since they exist here, they may as well be made to work
properly.
Note: should anyone decide to install these somewhere, the
"pushd" "popd" and "dirs" scripts are all the same thing,
and (while they could be installed as 3 files) should really
be just one file, linked to 3 names, when installed - it
makes no practical difference which of them gets copied rather
than just being a link.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/bin/sh/funcs/cmv src/bin/sh/funcs/login \
src/bin/sh/funcs/newgrp src/bin/sh/funcs/suspend
cvs rdiff -u -r1.9 -r1.10 src/bin/sh/funcs/dirs src/bin/sh/funcs/popd \
src/bin/sh/funcs/pushd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index