| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: pwd.1,v 1.24 2003/10/30 14:58:23 wiz Exp $ | | 1 | .\" $NetBSD: pwd.1,v 1.25 2016/08/12 02:03:26 sevan Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1990, 1993 | | 3 | .\" Copyright (c) 1990, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to Berkeley by | | 6 | .\" This code is derived from software contributed to Berkeley by |
7 | .\" the Institute of Electrical and Electronics Engineers, Inc. | | 7 | .\" the Institute of Electrical and Electronics Engineers, Inc. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -22,27 +22,27 @@ | | | @@ -22,27 +22,27 @@ |
22 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 22 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
23 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 23 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
24 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 24 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
25 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 25 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
26 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 26 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
27 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 27 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
28 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 28 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
29 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 29 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
31 | .\" SUCH DAMAGE. | | 31 | .\" SUCH DAMAGE. |
32 | .\" | | 32 | .\" |
33 | .\" @(#)pwd.1 8.2 (Berkeley) 4/28/95 | | 33 | .\" @(#)pwd.1 8.2 (Berkeley) 4/28/95 |
34 | .\" | | 34 | .\" |
35 | .Dd October 30, 2003 | | 35 | .Dd August 12, 2016 |
36 | .Dt PWD 1 | | 36 | .Dt PWD 1 |
37 | .Os | | 37 | .Os |
38 | .Sh NAME | | 38 | .Sh NAME |
39 | .Nm pwd | | 39 | .Nm pwd |
40 | .Nd return working directory name | | 40 | .Nd return working directory name |
41 | .Sh SYNOPSIS | | 41 | .Sh SYNOPSIS |
42 | .Nm | | 42 | .Nm |
43 | .Op Fl LP | | 43 | .Op Fl LP |
44 | .Sh DESCRIPTION | | 44 | .Sh DESCRIPTION |
45 | .Nm | | 45 | .Nm |
46 | writes the absolute pathname of the current working directory to | | 46 | writes the absolute pathname of the current working directory to |
47 | the standard output. | | 47 | the standard output. |
48 | .Pp | | 48 | .Pp |
| @@ -77,26 +77,31 @@ utility exits 0 on success, and \*[Gt]0 | | | @@ -77,26 +77,31 @@ utility exits 0 on success, and \*[Gt]0 |
77 | .Xr csh 1 , | | 77 | .Xr csh 1 , |
78 | .Xr ksh 1 , | | 78 | .Xr ksh 1 , |
79 | .Xr sh 1 , | | 79 | .Xr sh 1 , |
80 | .Xr getcwd 3 | | 80 | .Xr getcwd 3 |
81 | .Sh STANDARDS | | 81 | .Sh STANDARDS |
82 | The | | 82 | The |
83 | .Nm | | 83 | .Nm |
84 | utility is expected to be conforming to | | 84 | utility is expected to be conforming to |
85 | .St -p1003.1 , | | 85 | .St -p1003.1 , |
86 | except that the default is | | 86 | except that the default is |
87 | .Fl P | | 87 | .Fl P |
88 | not | | 88 | not |
89 | .Fl L . | | 89 | .Fl L . |
| | | 90 | .Sh HISTORY |
| | | 91 | A |
| | | 92 | .Nm |
| | | 93 | utility appeared in |
| | | 94 | .At v5 . |
90 | .Sh BUGS | | 95 | .Sh BUGS |
91 | In | | 96 | In |
92 | .Xr csh 1 | | 97 | .Xr csh 1 |
93 | the command | | 98 | the command |
94 | .Ic dirs | | 99 | .Ic dirs |
95 | is always faster (although it can give a different answer in the rare case | | 100 | is always faster (although it can give a different answer in the rare case |
96 | that the current directory or a containing directory was moved after | | 101 | that the current directory or a containing directory was moved after |
97 | the shell descended into it). | | 102 | the shell descended into it). |
98 | .Pp | | 103 | .Pp |
99 | .Nm | | 104 | .Nm |
100 | .Fl L | | 105 | .Fl L |
101 | relies on the file system having unique inode numbers. | | 106 | relies on the file system having unique inode numbers. |
102 | If this is not true (e.g., on FAT file systems) then | | 107 | If this is not true (e.g., on FAT file systems) then |