NetBSD/bin/sh
itohy 362c3e31c9 The builtin . (dot) command no longer sees the current working directory
even if the specified file is not in the PATH.
This change enforces security and makes it conform to POSIX.

Closes PR #6794.
I thought Christos committed this but not appeared yet. :)

The setstackmark()/popstackmark() pair in dotcmd(), used for freeing
stack storage possibly allocated by find_dot_file(), is redundant for now
since dotcmd() is surrounded by another pair in evalcommand().
This redundancy, however, may help future modifications
(suggested by Christos).
1999-02-02 15:49:52 +00:00
..
bltin Fix compiler warnings. 1997-07-04 21:01:48 +00:00
funcs
alias.c Fix dangling else warning. 1998-05-20 00:27:56 +00:00
alias.h
arith_lex.l Portability fixes for a non flex based lexical analyzer. 1998-05-18 22:50:20 +00:00
arith.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
arith.y Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
builtins.def NO_HISTORY->SMALL 1997-03-14 01:42:18 +00:00
cd.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
cd.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
error.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
error.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
eval.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
eval.h
exec.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
exec.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
expand.c Patches from Tor Egge (via Havard Eidnes) to fix various bugs in field 1999-01-25 14:20:56 +00:00
expand.h PR/4851: Benjamin Lorenz: In the "for <var> in <args>" construct <args> 1998-01-31 12:45:06 +00:00
histedit.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
init.h
input.c Simplify interface for general use. 1998-05-20 01:36:14 +00:00
input.h PR/2808: Remove trailing whitespace (from FreeBSD) 1996-10-16 15:45:03 +00:00
jobs.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
jobs.h pid should be pid_t and status should be int! Avoid alignment problems... 1997-10-15 13:23:10 +00:00
machdep.h
mail.c Include our local includes after the system's ones. 1998-01-31 12:36:16 +00:00
mail.h
main.c The builtin . (dot) command no longer sees the current working directory 1999-02-02 15:49:52 +00:00
main.h
Makefile The recent cross-compile changes broke the build of x_sh. Properly use 1998-10-08 00:29:38 +00:00
memalloc.c Include our local includes after the system's ones. 1998-01-31 12:36:16 +00:00
memalloc.h
miscbltin.c include <stdlib.h> to get the prototype for free() 1998-09-26 19:28:12 +00:00
miscbltin.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
mkbuiltins Pr/5221: Jason Thorpe: Simplify sh Makefile, so that builts from other 1998-03-29 09:27:40 +00:00
mkinit.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mknodes.c Delint. 1998-07-28 05:31:22 +00:00
mksyntax.c Patches from Tor Egge (via Havard Eidnes) to fix various bugs in field 1999-01-25 14:20:56 +00:00
mktokens PR/2808: tokens.def -> tokens.h 1996-10-16 14:47:49 +00:00
myhistedit.h Track $TERM and call the appropriate editline(3) routine to update the 1997-04-11 22:45:38 +00:00
mystring.c Fix compiler warnings. 1997-07-04 21:01:48 +00:00
mystring.h
nodes.c.pat Pointer arithmetic on void * is illegal but gcc does not care. 1997-04-11 23:03:08 +00:00
nodetypes
options.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
options.h Fix miscellaneous getopts problems: 1996-11-06 01:17:10 +00:00
output.c - Add gcc attributes to printf like functions 1998-01-31 12:37:55 +00:00
output.h - Add gcc attributes to printf like functions 1998-01-31 12:37:55 +00:00
parser.c Patches from Tor Egge (via Havard Eidnes) to fix various bugs in field 1999-01-25 14:20:56 +00:00
parser.h Patches from Tor Egge (via Havard Eidnes) to fix various bugs in field 1999-01-25 14:20:56 +00:00
redir.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
redir.h PR/2808: Remove trailing whitespace (from FreeBSD) 1996-10-16 15:45:03 +00:00
sh.1 Add support for the export and readonly -p option. 1999-01-28 18:11:50 +00:00
shell.h PR/2808: Don't define DEBUG and #ifdef out functions not needed when DEBUG 1996-10-16 15:21:49 +00:00
show.c Remove local declaration of getenv(); 1997-12-01 14:40:16 +00:00
show.h add forward declaration of union node; 1997-04-11 22:58:40 +00:00
TOUR PR/2808: tokens.def -> tokens.h 1996-10-16 14:24:56 +00:00
trap.c PR/6213: Urban Boquist: /bin/sh does not handle a trapped signal correctly 1999-01-18 16:18:04 +00:00
trap.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
var.c Add support for the export and readonly -p option. 1999-01-28 18:11:50 +00:00
var.h Patches from Tor Egge (via Havard Eidnes) to fix various bugs in field 1999-01-25 14:20:56 +00:00