1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 15:04:13 +00:00
cde/src/cmd/ksh93/bltins
Johnothan King 03224ae3af
Make the 'history' and 'r' commands builtins (#76)
With this change no more preset aliases exist, so the preset alias
tables can be safely removed. All ksh commands can now be used
without 'unalias -a' removing them, even in interactive shells.
Additionally, the history and r commands are no longer limited to
being used in interactive shells.

src/cmd/ksh93/bltins/hist.c:
- Implement the history and r commands as builtins. Also guarantee
  lflag is set to one by avoiding 'lflag++'.

src/cmd/ksh93/Makefile,
src/cmd/ksh93/Mamfile,
src/cmd/ksh93/sh/main.c,
src/cmd/ksh93/sh/init.c,
src/cmd/ksh93/data/aliases.c:
- Remove the table of predefined aliases because the last few have
  been removed. During init the alias tree is now initialized the
  same way as the function tree.

src/cmd/ksh93/bltins/typeset.c:
- Remove the bugfix for unsetting predefined aliases because it is
  now a no-op. Aliases are no longer able to have the NV_NOFREE
  attribute.

src/cmd/ksh93/tests/alias.sh:
- Remove the regression test for unsetting predefined aliases since
  those no longer exist.

src/cmd/ksh93/data/builtins.c:
- Update sh_opthist[] for 'hist --man', etc.

src/cmd/ksh93/sh.1:
- Remove the list of preset aliases since those no longer exist.
- Document history and r as builtins instead of preset aliases.

Co-authored-by: Martijn Dekker <martijn@inlv.org>
2020-07-16 18:56:49 +01:00
..
alarm.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cd_pwd.c Fix incorrect behavior of 'cd ../.foo' (#46) 2020-06-26 23:36:29 +01:00
cflow.c Fix regression in 'return' introduced by 98e0fc94 2020-06-12 01:45:17 +02:00
enum.c Fix some errors in the documentation and other minor issues (#42) 2020-06-25 19:31:51 +02:00
getopts.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
hist.c Make the 'history' and 'r' commands builtins (#76) 2020-07-16 18:56:49 +01:00
misc.c Millisecond precision for 'times' builtin (re: 65d363fd, 5c677a4c) 2020-07-15 04:22:45 +01:00
mkservice.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
print.c rm "I/O error" error msg; just keep >0 exit status (re: 9011fa93) 2020-06-12 01:45:18 +02:00
read.c Fix a crash when 'read -u' is given an invalid fd (#53) 2020-07-01 18:14:10 +01:00
regress.c Fix 47 typos in user-facing help and error messages 2020-06-12 01:45:12 +02:00
sleep.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
test.c silence macro redefinition warnings (re: 7003aba4) 2020-06-16 04:51:21 +02:00
trap.c Make 'stop' and 'suspend' regular built-ins 2020-06-22 15:36:29 +02:00
typeset.c Make the 'history' and 'r' commands builtins (#76) 2020-07-16 18:56:49 +01:00
ulimit.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
umask.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
whence.c Fix 'whence -a' to print correct path for tracked alias (#25) 2020-06-19 14:03:58 +02:00