Home | History | Annotate | only in /src/bin/pwd
History log of /src/bin/pwd
RevisionDateAuthorComments
 1.8 20-Jul-1997  christos branches: 1.8.112;
Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
 1.7 20-Jul-1997  christos Fix compiler warnings.
Add WARNS=1
 1.6 21-Mar-1995  cgd convert to new RCS id conventions.
 1.5 22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.112.2 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.8.112.1 21-Apr-2020  martin Sync with HEAD
 1.27 04-Jul-2017  wiz branches: 1.27.6;
Use Ex.
 1.26 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.25 12-Aug-2016  sevan Document the version pwd first appeared.
Bump date.
 1.24 30-Oct-2003  wiz file system, not filesystem; e.g. is an abbreviation; use FAT instead of msdos
when describing the file system.
 1.23 30-Oct-2003  dsl Make /bin/pwd almost conform to IEEE 1003.1
- Make 'pwd -L' fall back to 'pwd -P' if PWD is incorrect.
- Ignore PWD if it contains "/./" or "/../".
- Garbage collect some redundant code.
It is still non-conformant because posix mandates that the default
be 'pwd -L' (aka ksh), not 'pwd -P' (historic practise everywhere else).
Changing the default will break too much...
 1.22 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.21 02-Oct-2002  wiz evironment -> environment.
 1.20 25-Sep-2002  wiz New policy: New sentences start on a new line.
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
 1.19 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.18 04-Sep-2000  kleink For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
appropriate (and documented in mdoc(7)).
 1.17 28-Aug-2000  hubertf Add 'RETURN VALUE' section header.
 1.16 17-Nov-1999  kleink branches: 1.16.4;
Note that the options are extensions.
 1.15 31-May-1999  kleink branches: 1.15.4;
Make it clearer that -L does not necessarily do the job, and, following
conventions, move exit status information into its own section.
 1.14 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.13 03-Nov-1998  wsanchez Add -L flag.
 1.12 14-Sep-1997  lukem - getopt returns -1 not EOF
- use .Nm correctly in man page
 1.11 03-Mar-1997  cjs PR 3284, from enami tsugutomo <enami@ba2.so-net.or.jp>.
Remove space before punctuation.
 1.10 07-Sep-1995  jtc Sync with 4.4lite2
 1.9 25-Jul-1995  jtc Use "utility" instead of "command". Modern definitions of these terms
are distinct (See POSIX.2 glossary).

A utility is a executable, script or shell builtin; while a command
can be any of those things plus lists, pipelines, compound commands
(if, for, while) and shell function definitions.
 1.8 21-Mar-1995  cgd convert to new RCS id conventions.
 1.7 22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.6 28-Aug-1993  jtc Document the fact that the pwd utility is POSIX.2 compliant.
 1.5 01-Aug-1993  mycroft Add RCS indentifiers.
 1.4 22-Jul-1993  jtc Update to "new" -mandoc macros.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 07-Sep-1995  jtc imported from 44lite2
 1.1.1.2 22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.16.4.1 28-Aug-2000  hubertf Pull up to netbsd-1-5 branch, OK'd by thorpej:

Log Message:
> Add 'RETURN VALUE' section header.

Files & Revisionis:
> cvs rdiff -r1.19 -r1.20 basesrc/bin/cat/cat.1
> cvs rdiff -r1.12 -r1.13 basesrc/bin/chmod/chmod.1
> cvs rdiff -r1.14 -r1.15 basesrc/bin/cp/cp.1
> cvs rdiff -r1.8 -r1.9 basesrc/bin/dd/dd.1
> cvs rdiff -r1.9 -r1.10 basesrc/bin/echo/echo.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/expr/expr.1
> cvs rdiff -r1.25 -r1.26 basesrc/bin/ls/ls.1
> cvs rdiff -r1.10 -r1.11 basesrc/bin/mkdir/mkdir.1
> cvs rdiff -r1.23 -r1.24 basesrc/bin/mt/mt.1
> cvs rdiff -r1.12 -r1.13 basesrc/bin/mv/mv.1
> cvs rdiff -r1.16 -r1.17 basesrc/bin/pwd/pwd.1
> cvs rdiff -r1.9 -r1.10 basesrc/bin/rm/rm.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/rmdir/rmdir.1
> cvs rdiff -r1.35 -r1.36 basesrc/bin/sh/sh.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/sleep/sleep.1
> cvs rdiff -r1.20 -r1.21 basesrc/bin/stty/stty.1
 1.27.6.2 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.27.6.1 21-Apr-2020  martin Sync with HEAD
 1.23 16-Nov-2021  kre Make pwd (both /bin/pwd and the /bin/sh built-in version) check for
write errors on stdout, and indicate an error if that happens.
 1.22 29-Aug-2011  joerg branches: 1.22.44;
Use __dead
 1.21 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.20 26-May-2008  christos PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale
 1.19 30-Oct-2003  dsl branches: 1.19.30; 1.19.32;
Make /bin/pwd almost conform to IEEE 1003.1
- Make 'pwd -L' fall back to 'pwd -P' if PWD is incorrect.
- Ignore PWD if it contains "/./" or "/../".
- Garbage collect some redundant code.
It is still non-conformant because posix mandates that the default
be 'pwd -L' (aka ksh), not 'pwd -P' (historic practise everywhere else).
Changing the default will break too much...
 1.18 14-Sep-2003  jschauma Following private discussion with kleink@ and hubertf@ and public discussion
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''
 1.17 13-Aug-2003  itojun use bounded string op
 1.16 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.15 04-Aug-2003  jschauma As discusses a little while back on tech-userlevel:

If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.

While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
 1.14 16-Sep-2001  wiz ANSIfy, KNF, use [gs]etprogname. By Petri Koistinen.
 1.13 09-Nov-1999  drochner Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
 1.12 31-May-1999  kleink branches: 1.12.4;
* Restructure getcwd_logical() to have a reasonable error description even if
$PWD is unset in the environment and update usage() string; addresses
PR bin/7504.
* Fix whitespace lossage from rev. 1.11.
* Minor other cleanups, including EXIT_{SUCCESS,FAILURE}.
 1.11 03-Nov-1998  wsanchez Add -L flag.
 1.10 28-Jul-1998  mycroft Delint.
 1.9 14-Sep-1997  lukem - getopt returns -1 not EOF
- use .Nm correctly in man page
 1.8 20-Jul-1997  christos Fix compiler warnings.
Add WARNS=1
 1.7 21-Mar-1995  cgd convert to new RCS id conventions.
 1.6 22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.5 10-Sep-1993  jtc Include appropriate header files to bring prototypes into scope.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.19.32.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.19.32.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.19.30.1 04-Jun-2008  yamt sync with head
 1.22.44.2 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.22.44.1 21-Apr-2020  martin Sync with HEAD

RSS XML Feed