summaryrefslogtreecommitdiff
path: root/bin/sh/cd.c
AgeCommit message (Expand)Author
2025-07-01sh(1): Do not interpret chdir to "" as equivalent to chdir with no argumentXin LI
2023-11-26bin: Automated cleanup of cdefs and other formattingWarner Losh
2023-11-26bin: Remove ancient SCCS tags.Warner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2020-01-01sh: Fix rare memory leak with SIGINTJilles Tjoelker
2018-07-15sh: Don't treat % specially in CDPATHJilles Tjoelker
2017-06-25sh: Ignore error when cd writes the directory actually switched to.Jilles Tjoelker
2017-02-28Renumber copyright clause 4Warner Losh
2016-01-24sh: Remove a global variable from cd.c.Jilles Tjoelker
2016-01-23sh: Use OLDPWD shell variable for 'cd -'.Jilles Tjoelker
2015-02-15sh: Prefer "" to nullstr where possible.Jilles Tjoelker
2015-02-15sh: Add stsavestr(), like savestr() but allocates using stalloc().Jilles Tjoelker
2013-11-30sh: Prefer memcpy() to strcpy() in most cases. Remove the scopy macro.Jilles Tjoelker
2012-09-15sh: Prefer internal nextopt() to libc getopt().Jilles Tjoelker
2012-01-13sh: Properly show "Not a directory" error in cd builtin.Jilles Tjoelker
2011-06-13sh: Fix duplicate prototypes for builtins.Jilles Tjoelker
2011-05-27sh: Correct criterion for using CDPATH in cd.Jilles Tjoelker
2011-05-25sh: Show errno messages in cd.Jilles Tjoelker
2011-05-20sh: Implement the cd -e flag proposed for the next POSIX issue.Jilles Tjoelker
2010-12-21sh: Add a function to print warnings (with command name and newline).Jilles Tjoelker
2010-11-23sh: Code size optimizations to "stack string" memory allocation:Jilles Tjoelker
2010-11-22sh: Fix confusing behaviour if chdir succeeded but getcwd failed in cd -P.Jilles Tjoelker
2010-10-13In the spirit of r90111, depend on c89 and remove the "STATIC" macroDavid E. O'Brien
2010-10-13Consistently use "STATIC" for all functions in order to be able to setDavid E. O'Brien
2010-04-17sh: On startup of the shell, use PWD from the environment if it is valid.Jilles Tjoelker
2009-12-27sh: Various warning fixes (from WARNS=6 NO_WERROR=1):Jilles Tjoelker
2009-12-24sh: Constify various strings.Jilles Tjoelker
2009-11-21Handle current work directories of arbitrary length. The argument to cdStefan Farfeleder
2008-02-24Split updatepwd() into two smaller functions. The first one, findpwd(),Stefan Farfeleder
2006-06-12Don't strip a leading ./ from the path for the cd builtin to avoid interpretingStefan Farfeleder
2004-04-06Remove clause 3 from the UCB licenses.Mark Murray
2003-07-05Changes following CScout analysis:Diomidis Spinellis
2002-07-25Add a -P/-o physical option which behaves similarly to bash/ksh's optionsTim J. Robbins
2002-07-25Set opterr to zero to avoid duplicate warnings from getopt(3) for unknownTim J. Robbins
2002-07-25Use PATH_MAX instead of a local guess at it, which happened to be incorrect.Tim J. Robbins
2002-07-25pwdcmd()'s argc and argv arguments are no longer unused, remove __unused.Tim J. Robbins
2002-07-19Remove broken and incomplete support for old releases of System V,Tim J. Robbins
2002-06-30Consistently use FBSDIDDavid E. O'Brien
2002-05-22Bring back the cd -L and -P options from revision 1.24, but try harder notTim J. Robbins
2002-05-22Temporarily back out revision 1.24; it seems to handle the case where theTim J. Robbins
2002-05-20Add the SUSv3 -L and -P options to the cd and pwd builtin utilities. `Logical'Tim J. Robbins
2002-05-19Remove a small, annoying, nit I ran in to editing this file, a lone tabJuli Mallett
2002-02-02o __P has been reovedWarner Losh
2001-11-07Don't call setvar() with the VTEXTFIXED flag. A copy is created byTor Egge
1999-11-29Include strerror(errno) in error messages after failed system calls.Martin Cracauer
1999-08-27$Id$ -> $FreeBSD$Peter Wemm
1998-09-06Don't blindly eliminate `..' and the previous pathname component.Tor Egge
1998-05-18Add rcsid. Spelling.Philippe Charnier
1997-05-19Use the __unused attribute where warranted.Steve Price
1997-04-28Nuke register keyword usage and #if -> #ifdef.Steve Price