Deleted Added
full compact
pwd.1 (81687) pwd.1 (90170)
1.\" Copyright (c) 1990, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)pwd.1 8.2 (Berkeley) 4/28/95
1.\" Copyright (c) 1990, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)pwd.1 8.2 (Berkeley) 4/28/95
36.\" $FreeBSD: head/bin/pwd/pwd.1 81687 2001-08-15 09:09:47Z ru $
36.\" $FreeBSD: head/bin/pwd/pwd.1 90170 2002-02-04 07:26:21Z mike $
37.\"
37.\"
38.Dd April 28, 1995
38.Dd February 4, 2002
39.Dt PWD 1
40.Os
41.Sh NAME
42.Nm pwd
43.Nd return working directory name
44.Sh SYNOPSIS
45.Nm
39.Dt PWD 1
40.Os
41.Sh NAME
42.Nm pwd
43.Nd return working directory name
44.Sh SYNOPSIS
45.Nm
46.Op Fl L | P
46.Sh DESCRIPTION
47.Nm Pwd
48writes the absolute pathname of the current working directory to
49the standard output.
50.Pp
51Some shells may provide a builtin
52.Nm
53command which is similar or identical to this utility.
54Consult the
55.Xr builtin 1
56manual page.
47.Sh DESCRIPTION
48.Nm Pwd
49writes the absolute pathname of the current working directory to
50the standard output.
51.Pp
52Some shells may provide a builtin
53.Nm
54command which is similar or identical to this utility.
55Consult the
56.Xr builtin 1
57manual page.
58.Pp
59The options are as follows:
60.Bl -tag -width indent
61.It Fl L
62Display the logical current working directory.
63.It Fl P
64Display the physical current working directory (all symbolic links resolved).
65.El
66.Pp
67If no options are specified, the
68.Fl P
69option is assumed.
70.Sh ENVIRONMENT
71Environment variables used by
72.Nm :
73.Bl -tag -width PWD
74.It Ev PWD
75Logical current working directory.
76.El
57.Sh DIAGNOSTICS
58.Ex -std
59.Sh STANDARDS
60The
61.Nm
77.Sh DIAGNOSTICS
78.Ex -std
79.Sh STANDARDS
80The
81.Nm
62utility is expected to be
63.St -p1003.2
64compatible.
65The
66.Fl L
67flag is not supported.
82utility conforms to
83.St -p1003.1-2001 .
68.Sh SEE ALSO
69.Xr builtin 1 ,
70.Xr cd 1 ,
71.Xr csh 1 ,
72.Xr sh 1 ,
73.Xr getcwd 3
74.Sh BUGS
75In
76.Xr csh 1
77the command
78.Ic dirs
79is always faster because it is built into that shell.
80However, it can give a different answer in the rare case
81that the current directory or a containing directory was moved after
82the shell descended into it.
84.Sh SEE ALSO
85.Xr builtin 1 ,
86.Xr cd 1 ,
87.Xr csh 1 ,
88.Xr sh 1 ,
89.Xr getcwd 3
90.Sh BUGS
91In
92.Xr csh 1
93the command
94.Ic dirs
95is always faster because it is built into that shell.
96However, it can give a different answer in the rare case
97that the current directory or a containing directory was moved after
98the shell descended into it.
99.Pp
100The
101.Fl L
102option does not work unless the
103.Ev PWD
104environment variable is exported by the shell.