Deleted Added
full compact
basename.1 (1591) basename.1 (18480)
1.\" Copyright (c) 1990, 1993, 1994
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.\" @(#)basename.1 8.2 (Berkeley) 4/18/94
1.\" Copyright (c) 1990, 1993, 1994
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.\" @(#)basename.1 8.2 (Berkeley) 4/18/94
36.\" $Id$
36.\"
37.Dd April 18, 1994
38.Dt BASENAME 1
39.Os
40.Sh NAME
41.Nm basename , dirname
42.Nd return filename or directory portion of pathname
43.Sh SYNOPSIS

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

82.Dl FOO=`dirname /usr/bin/trail`
83.Pp
84Both the
85.Nm basename
86and
87.Nm dirname
88exit 0 on success, and >0 if an error occurs.
89.Sh SEE ALSO
37.\"
38.Dd April 18, 1994
39.Dt BASENAME 1
40.Os
41.Sh NAME
42.Nm basename , dirname
43.Nd return filename or directory portion of pathname
44.Sh SYNOPSIS

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

83.Dl FOO=`dirname /usr/bin/trail`
84.Pp
85Both the
86.Nm basename
87and
88.Nm dirname
89exit 0 on success, and >0 if an error occurs.
90.Sh SEE ALSO
90.Xr csh 1
91.Xr csh 1 ,
91.Xr sh 1
92.Sh STANDARDS
93The
94.Nm basename
95and
96.Nm dirname
97functions are expected to be POSIX 1003.2 compatible.
92.Xr sh 1
93.Sh STANDARDS
94The
95.Nm basename
96and
97.Nm dirname
98functions are expected to be POSIX 1003.2 compatible.