freebsd-dev/bin/sh
Jilles Tjoelker 6f49cd266b sh: Ignore error when cd writes the directory actually switched to.
If CDPATH is used non-trivially or the operand is "-", cd writes the
directory actually switched to. (We currently do this only in interactive
shells, but POSIX requires this in non-interactive shells as well.)

As mentioned in Austin group bug #1045, cd shall not return an error while
leaving the current directory changed. Therefore, ignore any write error.
2017-06-25 21:53:08 +00:00
..
bltin Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
funcs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tests sh: Ignore error when cd writes the directory actually switched to. 2017-06-25 21:53:08 +00:00
alias.c sh: Fix use after free when resetting an in-use alias. 2017-04-16 22:10:02 +00:00
alias.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
arith_yacc.c sh: Remove two redundant (uintmax_t) casts. 2014-08-20 20:15:43 +00:00
arith_yacc.h sh: Fix compiler warnings related to duplicate or missing declarations. 2015-03-01 21:46:55 +00:00
arith_yylex.c sh: Fix compiler warnings related to duplicate or missing declarations. 2015-03-01 21:46:55 +00:00
arith.h sh: Remove unused function declaration for arith_lex_reset(). 2017-03-18 20:41:07 +00:00
builtins.def Allow defining nofork builtins from builtins.def and move always-safe ones there. 2017-06-04 21:02:48 +00:00
cd.c sh: Ignore error when cd writes the directory actually switched to. 2017-06-25 21:53:08 +00:00
cd.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
error.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
error.h sh: Make sure to process SIGINT if SETINTON re-enables processing. 2017-06-04 21:58:02 +00:00
eval.c Allow defining nofork builtins from builtins.def and move always-safe ones there. 2017-06-04 21:02:48 +00:00
eval.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
exec.c sh: Update TOUR and comments for some code changes, some of them old. 2017-05-06 13:28:42 +00:00
exec.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
expand.c sh: Fix '-' from quoted arithmetic in case/glob pattern range. 2017-05-14 13:14:19 +00:00
expand.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
histedit.c sh: Call fc -e editor with interrupts enabled. 2017-06-06 21:08:05 +00:00
input.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
input.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
jobs.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
jobs.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mail.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mail.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
main.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
main.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile bin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:31:08 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
memalloc.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
memalloc.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
miscbltin.c sh: Reduce size of limits table. 2017-04-12 21:15:55 +00:00
mkbuiltins Allow defining nofork builtins from builtins.def and move always-safe ones there. 2017-06-04 21:02:48 +00:00
mknodes.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mksyntax.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mktokens Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
myhistedit.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mystring.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mystring.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nodes.c.pat Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nodetypes Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
options.c sh: Update TOUR and comments for some code changes, some of them old. 2017-05-06 13:28:42 +00:00
options.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
output.c sh: Keep output buffer across builtins. 2017-05-18 22:10:04 +00:00
output.h sh: Simplify output buffering. 2017-05-16 21:54:51 +00:00
parser.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
parser.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
redir.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
redir.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sh.1 sh: Ignore error when cd writes the directory actually switched to. 2017-06-25 21:53:08 +00:00
shell.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
show.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
show.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
TOUR sh: Update TOUR and comments for some code changes, some of them old. 2017-05-06 13:28:42 +00:00
trap.c sh: Enable interrupts before executing EXIT trap and doing final flush. 2017-06-11 16:54:04 +00:00
trap.h sh: Simplify setinteractive(). 2017-04-22 21:31:37 +00:00
var.c sh: Fix INTOFF leak after a builtin with different locale settings. 2017-05-07 19:49:46 +00:00
var.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00