aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/cd.c
Commit message (Expand)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
* sh: Fix rare memory leak with SIGINTJilles Tjoelker2020-01-011-1/+4
* sh: Don't treat % specially in CDPATHJilles Tjoelker2018-07-151-1/+1
* sh: Ignore error when cd writes the directory actually switched to.Jilles Tjoelker2017-06-251-1/+10
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
* sh: Remove a global variable from cd.c.Jilles Tjoelker2016-01-241-14/+15
* sh: Use OLDPWD shell variable for 'cd -'.Jilles Tjoelker2016-01-231-10/+9
* sh: Prefer "" to nullstr where possible.Jilles Tjoelker2015-02-151-1/+1
* sh: Add stsavestr(), like savestr() but allocates using stalloc().Jilles Tjoelker2015-02-151-8/+2
* sh: Prefer memcpy() to strcpy() in most cases. Remove the scopy macro.Jilles Tjoelker2013-11-301-4/+8
* sh: Prefer internal nextopt() to libc getopt().Jilles Tjoelker2012-09-151-19/+7
* sh: Properly show "Not a directory" error in cd builtin.Jilles Tjoelker2012-01-131-1/+6
* sh: Fix duplicate prototypes for builtins.Jilles Tjoelker2011-06-131-0/+1
* sh: Correct criterion for using CDPATH in cd.Jilles Tjoelker2011-05-271-1/+4
* sh: Show errno messages in cd.Jilles Tjoelker2011-05-251-1/+4
* sh: Implement the cd -e flag proposed for the next POSIX issue.Jilles Tjoelker2011-05-201-8/+17
* sh: Add a function to print warnings (with command name and newline).Jilles Tjoelker2010-12-211-1/+1
* sh: Code size optimizations to "stack string" memory allocation:Jilles Tjoelker2010-11-231-8/+4
* sh: Fix confusing behaviour if chdir succeeded but getcwd failed in cd -P.Jilles Tjoelker2010-11-221-2/+5
* In the spirit of r90111, depend on c89 and remove the "STATIC" macroDavid E. O'Brien2010-10-131-16/+16
* Consistently use "STATIC" for all functions in order to be able to setDavid E. O'Brien2010-10-131-3/+3
* sh: On startup of the shell, use PWD from the environment if it is valid.Jilles Tjoelker2010-04-171-5/+22
* sh: Various warning fixes (from WARNS=6 NO_WERROR=1):Jilles Tjoelker2009-12-271-1/+1
* sh: Constify various strings.Jilles Tjoelker2009-12-241-1/+1
* Handle current work directories of arbitrary length. The argument to cdStefan Farfeleder2009-11-211-22/+29
* Split updatepwd() into two smaller functions. The first one, findpwd(),Stefan Farfeleder2008-02-241-38/+45
* Don't strip a leading ./ from the path for the cd builtin to avoid interpretingStefan Farfeleder2006-06-121-2/+3
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
* Changes following CScout analysis:Diomidis Spinellis2003-07-051-2/+2
* Add a -P/-o physical option which behaves similarly to bash/ksh's optionsTim J. Robbins2002-07-251-2/+2
* Set opterr to zero to avoid duplicate warnings from getopt(3) for unknownTim J. Robbins2002-07-251-2/+2
* Use PATH_MAX instead of a local guess at it, which happened to be incorrect.Tim J. Robbins2002-07-251-4/+3
* pwdcmd()'s argc and argv arguments are no longer unused, remove __unused.Tim J. Robbins2002-07-251-1/+1
* Remove broken and incomplete support for old releases of System V,Tim J. Robbins2002-07-191-55/+0
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
* Bring back the cd -L and -P options from revision 1.24, but try harder notTim J. Robbins2002-05-221-33/+105
* Temporarily back out revision 1.24; it seems to handle the case where theTim J. Robbins2002-05-221-78/+22
* Add the SUSv3 -L and -P options to the cd and pwd builtin utilities. `Logical'Tim J. Robbins2002-05-201-22/+78
* Remove a small, annoying, nit I ran in to editing this file, a lone tabJuli Mallett2002-05-191-1/+1
* o __P has been reovedWarner Losh2002-02-021-16/+9
* Don't call setvar() with the VTEXTFIXED flag. A copy is created byTor Egge2001-11-071-4/+4
* Include strerror(errno) in error messages after failed system calls.Martin Cracauer1999-11-291-1/+1
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
* Don't blindly eliminate `..' and the previous pathname component.Tor Egge1998-09-061-17/+156
* Add rcsid. Spelling.Philippe Charnier1998-05-181-3/+5
* Use the __unused attribute where warranted.Steve Price1997-05-191-5/+5
* Nuke register keyword usage and #if -> #ifdef.Steve Price1997-04-281-2/+2
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
* Make sh(1) think and be in the same place at the same time. This closesSteve Price1997-01-041-15/+11