History log of /src/bin/sh/alias.h |
Revision | | Date | Author | Comments |
1.9 |
| 03-Dec-2018 |
kre | Revamp aliases - as dumb an idea as they are, if we're going to have them, they should work as documented, not cause core dumps, reference after free, incorrect replacements, failing to implement alias after alias, ...
The big comment that ended: This is a good idea ------- ***NOT*** and the hack it was describing are gone.
Note that most of this was from original CVS version 1.1 code (ie: came from the original import, even before 4.4-Lite was merged. That is, May 1994. And no-one in 24.5 years noticed (or at least complained about) all the bugs (or at least, most of them)).
With these changes, aliases ought to work (if you can call it that) as they are expected to by POSIX. Now if only we could get POSIX to delete them (or make them optional)...
Changes partly inspired by similar changes made by FreeBSD, (as was the previous change to alias.c, forgot ack in commit log for that one, apologies) but done a little differently, and perhaps with a slightly better outcome.
|
1.8 |
| 18-Jun-2014 |
christos | branches: 1.8.22; 1.8.24; Adjust to the new alias text libedit API.
|
1.7 |
| 18-Jun-2011 |
christos | branches: 1.7.8; 1.7.20; PR/45069: Henning Petersen: Use prototypes from builtins.h .
|
1.6 |
| 07-Aug-2003 |
agc | branches: 1.6.52; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
|
1.5 |
| 24-Nov-2002 |
christos | Fixes from David Laight: - ansification - format of output of jobs command (etc) - job identiers %+, %- etc - $? and $(...) - correct quoting of output of set, export -p and readonly -p - differentiation between nornal and 'posix special' builtins - correct behaviour (posix) for errors on builtins and special builtins - builtin printf and kill - set -o debug (if compiled with DEBUG) - cd src obj (as ksh - too useful to do without) - unset -e name, remove non-readonly variable from export list. (so I could unset -e PS1 before running the test shell...)
|
1.4 |
| 11-May-1995 |
christos | Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 bug.
|
1.3 |
| 21-Mar-1995 |
cgd | convert to new RCS id conventions.
|
1.2 |
| 11-Jun-1994 |
mycroft | Add RCS ids.
|
1.1 |
| 11-May-1994 |
jtc | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 11-May-1994 |
jtc | 44lite code
|
1.6.52.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.7.20.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.7.8.1 |
| 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.8.24.3 |
| 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.8.24.2 |
| 21-Apr-2020 |
martin | Sync with HEAD
|
1.8.24.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.8.22.1 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|