Deleted Added
full compact
sh.1 (114318) sh.1 (115082)
1.\" Copyright (c) 1991, 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.\" Kenneth Almquist.
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.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
1.\" Copyright (c) 1991, 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.\" Kenneth Almquist.
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.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
36.\" $FreeBSD: head/bin/sh/sh.1 114318 2003-04-30 19:18:50Z schweikh $
36.\" $FreeBSD: head/bin/sh/sh.1 115082 2003-05-16 21:19:32Z ru $
37.\"
38.Dd April 12, 2003
39.Dt SH 1
40.Os
41.Sh NAME
42.Nm sh
43.Nd command interpreter (shell)
44.Sh SYNOPSIS

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

1290Execute the specified built-in command,
1291.Ar cmd .
1292This is useful when the user wishes to override a shell function
1293with the same name as a built-in command.
1294.It Ic bind Oo Fl aeklrsv Oc Oo Ar key Oo Ar command Oc Oc
1295List or alter key bindings for the line editor.
1296This command is documented in
1297.Xr editrc 5 .
37.\"
38.Dd April 12, 2003
39.Dt SH 1
40.Os
41.Sh NAME
42.Nm sh
43.Nd command interpreter (shell)
44.Sh SYNOPSIS

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

1290Execute the specified built-in command,
1291.Ar cmd .
1292This is useful when the user wishes to override a shell function
1293with the same name as a built-in command.
1294.It Ic bind Oo Fl aeklrsv Oc Oo Ar key Oo Ar command Oc Oc
1295List or alter key bindings for the line editor.
1296This command is documented in
1297.Xr editrc 5 .
1298.It Ic cd Oo Fl L | Fl P Oc Op Ar directory
1298.It Ic cd Oo Fl L | P Oc Op Ar directory
1299Switch to the specified
1300.Ar directory ,
1301or to the directory specified in the
1302.Ev HOME
1303environment variable if no
1304.Ar directory
1305is specified.
1306If

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

1621The information printed includes job ID, status and command name.
1622.Pp
1623If the
1624.Fl l
1625option is specified, the PID of each job is also printed.
1626If the
1627.Fl s
1628option is specified, only the PIDs of the jobs are printed, one per line.
1299Switch to the specified
1300.Ar directory ,
1301or to the directory specified in the
1302.Ev HOME
1303environment variable if no
1304.Ar directory
1305is specified.
1306If

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

1621The information printed includes job ID, status and command name.
1622.Pp
1623If the
1624.Fl l
1625option is specified, the PID of each job is also printed.
1626If the
1627.Fl s
1628option is specified, only the PIDs of the jobs are printed, one per line.
1629.It Ic pwd Oo Fl L | Fl P Oc
1629.It Ic pwd Op Fl L | P
1630Print the path of the current directory. The built-in command may
1631differ from the program of the same name because the
1632built-in command remembers what the current directory
1633is rather than recomputing it each time. This makes
1634it faster. However, if the current directory is
1635renamed,
1636the built-in version of
1637.Xr pwd 1

--- 318 unchanged lines hidden ---
1630Print the path of the current directory. The built-in command may
1631differ from the program of the same name because the
1632built-in command remembers what the current directory
1633is rather than recomputing it each time. This makes
1634it faster. However, if the current directory is
1635renamed,
1636the built-in version of
1637.Xr pwd 1

--- 318 unchanged lines hidden ---