freebsd-dev/bin/sh
Jilles Tjoelker e964872f18 sh: Fix two issues when an alias is redefined:
* The last character is not displayed.
 * If the alias ends with itself (as a word), an infinite memory-eating loop
   occurs.

If an alias is defined initially, a space is appended to avoid recursion but
this did not happen when an alias was later modified.

PR:		bin/173418
Submitted by:	Daniel F.
MFC after:	1 week
2012-11-08 13:33:48 +00:00
..
bltin
funcs sh: Remove "kill" example function, which is superseded by the kill builtin 2012-01-21 20:39:17 +00:00
alias.c sh: Fix two issues when an alias is redefined: 2012-11-08 13:33:48 +00:00
alias.h
arith_yacc.c Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output. 2012-01-25 08:42:19 +00:00
arith_yacc.h
arith_yylex.c Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output. 2012-01-25 08:42:19 +00:00
arith.h
builtins.def
cd.c sh: Prefer internal nextopt() to libc getopt(). 2012-09-15 21:56:30 +00:00
cd.h
error.c
error.h
eval.c sh: Prefer internal nextopt() to libc getopt(). 2012-09-15 21:56:30 +00:00
eval.h sh: Fix execution of multiple statements in a trap when evalskip is set 2012-01-16 11:07:46 +00:00
exec.c sh: Change cmdtype in tblentry from short to signed char. 2012-11-05 17:52:18 +00:00
exec.h sh: Expand assignment-like words specially for export/readonly/local. 2012-07-15 10:19:43 +00:00
expand.c sh: Make various functions static. 2012-01-01 22:17:12 +00:00
expand.h sh: Make various functions static. 2012-01-01 22:17:12 +00:00
histedit.c sh: Prefer internal nextopt() to libc getopt(). 2012-09-15 21:56:30 +00:00
init.h
input.c Merge libedit adjustment from NetBSD. 2012-07-11 22:17:58 +00:00
input.h sh: Make various functions static. 2012-01-01 22:17:12 +00:00
jobs.c sh: Prefer internal nextopt() to libc getopt(). 2012-09-15 21:56:30 +00:00
jobs.h sh: Remove unused variable in_dowait. 2012-07-15 10:49:16 +00:00
mail.c
mail.h
main.c sh: Reduce code duplication: use setinputfile instead of open/setinputfd 2012-09-14 15:22:15 +00:00
main.h sh: Make various functions static. 2012-01-01 22:17:12 +00:00
Makefile Work better with how make/bmake works: 2012-05-24 19:48:15 +00:00
memalloc.c
memalloc.h
miscbltin.c sh: Remove an unused header. 2012-05-15 22:50:47 +00:00
mkbuiltins Work better with how make/bmake works: 2012-05-24 19:48:15 +00:00
mkinit.c
mknodes.c
mksyntax.c sh: Allow quoting ^ and ] in bracket expressions. 2011-12-28 23:51:17 +00:00
mktokens
myhistedit.h sh: Make various functions static. 2012-01-01 22:17:12 +00:00
mystring.c sh: Remove unused function scopyn(). 2012-01-01 22:15:38 +00:00
mystring.h sh: Remove unused function scopyn(). 2012-01-01 22:15:38 +00:00
nodes.c.pat
nodetypes
options.c sh: Remove XXX comment about removing nextopt(). 2012-09-08 19:24:03 +00:00
options.h
output.c
output.h
parser.c
parser.h
redir.c
redir.h
sh.1 mdoc: don't nest displays. The markup here isn't adding anything anyway. 2012-10-14 13:59:17 +00:00
shell.h
show.c
show.h
TOUR
trap.c sh: Fix EINTR race condition in "wait" and "set -T" using sigsuspend(). 2012-07-29 18:04:38 +00:00
trap.h sh: Fix EINTR race condition in "wait" and "set -T" using sigsuspend(). 2012-07-29 18:04:38 +00:00
var.c sh: Prefer internal nextopt() to libc getopt(). 2012-09-15 21:56:30 +00:00
var.h sh: Use vfork in a few common cases. 2012-02-04 23:12:14 +00:00