Home | History | Annotate | Download | only in pwd
History log of /src/bin/pwd/pwd.c
RevisionDateAuthorComments
 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