aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/cd.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* sh: Fix duplicate prototypes for builtins.Jilles Tjoelker2011-06-131-2/+0
| | | | | | | | | Have mkbuiltins write the prototypes for the *cmd functions to builtins.h instead of builtins.c and include builtins.h in more .c files instead of duplicating prototypes for *cmd functions in other headers. Notes: svn path=/head/; revision=223060
* sh: On startup of the shell, use PWD from the environment if it is valid.Jilles Tjoelker2010-04-171-1/+1
| | | | | | | | | | | | | | | | | | Unset PWD if it is incorrect and no value for it can be determined. This preserves the logical current directory across shell invocations. Example (assuming /home is a symlink): $ cd $ pwd /home/foo $ sh $ pwd /home/foo Formerly the second pwd would show the physical path (symlinks resolved). Notes: svn path=/head/; revision=206759
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* o __P has been reovedWarner Losh2002-02-021-3/+3
| | | | | | | | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ... Notes: svn path=/head/; revision=90111
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Don't blindly eliminate `..' and the previous pathname component.Tor Egge1998-09-061-2/+4
| | | | | | | | PR: 2541 Obtained from: NetBSD Notes: svn path=/head/; revision=38886
* Added $Id$.Alexander Langer1997-12-291-0/+2
| | | | Notes: svn path=/head/; revision=32066
* Make sh(1) a little braver in the face of adversity. sh(1)Steve Price1996-12-211-1/+1
| | | | | | | | | | now handles the getpwd() init problem the same way as bash and ksh do. Also while I was in here, I cleaned up the format a little, removed some unnnecessary #if SYMLINKS cruft, and changed the pwd builtin to use getcwd(3) as Joerg suggested. Notes: svn path=/head/; revision=20774
* Merge in NetBSD mods and -Wall cleaning.Steve Price1996-12-141-0/+34
Obtained from: NetBSD, me Notes: svn path=/head/; revision=20425