sh.1 (100395) | sh.1 (100437) |
---|---|
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 100395 2002-07-20 04:39:23Z tjr $ | 36.\" $FreeBSD: head/bin/sh/sh.1 100437 2002-07-21 06:49:14Z tjr $ |
37.\" 38.Dd May 5, 1995 39.Dt SH 1 40.Os 41.Sh NAME 42.Nm sh 43.Nd command interpreter (shell) 44.Sh SYNOPSIS --- 1224 unchanged lines hidden (view full) --- 1269(see 1270.Ic unalias ) . 1271Alias values are written with appropriate quoting so that they are 1272suitable for reinput to the shell. 1273.It Ic bg Op Ar job ... 1274Continue the specified jobs 1275(or the current job if no jobs are given) 1276in the background. | 37.\" 38.Dd May 5, 1995 39.Dt SH 1 40.Os 41.Sh NAME 42.Nm sh 43.Nd command interpreter (shell) 44.Sh SYNOPSIS --- 1224 unchanged lines hidden (view full) --- 1269(see 1270.Ic unalias ) . 1271Alias values are written with appropriate quoting so that they are 1272suitable for reinput to the shell. 1273.It Ic bg Op Ar job ... 1274Continue the specified jobs 1275(or the current job if no jobs are given) 1276in the background. |
1277.It Ic command Ar cmd Op Ar arg ... | 1277.It Ic builtin Ar cmd Op Ar arg ... |
1278Execute the specified builtin command, 1279.Ar cmd . 1280This is useful when the user wishes to override a shell function 1281with the same name as a builtin command. 1282.It Ic cd Oo Fl LP Oc Op Ar directory 1283Switch to the specified 1284.Ar directory , 1285or to the directory specified in the --- 42 unchanged lines hidden (view full) --- 1328.Pa .. 1329is handled logically. 1330This is the default. 1331.It Ic chdir 1332A synonym for the 1333.Ic cd 1334builtin command. 1335.It Xo | 1278Execute the specified builtin command, 1279.Ar cmd . 1280This is useful when the user wishes to override a shell function 1281with the same name as a builtin command. 1282.It Ic cd Oo Fl LP Oc Op Ar directory 1283Switch to the specified 1284.Ar directory , 1285or to the directory specified in the --- 42 unchanged lines hidden (view full) --- 1328.Pa .. 1329is handled logically. 1330This is the default. 1331.It Ic chdir 1332A synonym for the 1333.Ic cd 1334builtin command. 1335.It Xo |
1336.Ic command 1337.Op Fl p 1338.Oo 1339.Ar utility 1340.Op Ar argument ... 1341.Oc 1342.Xc 1343Execute the specified 1344.Ar utility 1345as a simple command (see the 1346.Sx Simple Commands 1347section). 1348.Pp 1349If the 1350.Fl p 1351option is specified, the command search is performed using a 1352default value of 1353.Ev PATH 1354that is guaranteed to find all of the standard utilities. 1355.It Xo |
|
1336.Ic echo 1337.Op Fl e | Fl n 1338.Op Ar string 1339.Xc 1340Print 1341.Ar string 1342to the standard output with a newline appended. 1343.Bl -tag -width indent --- 600 unchanged lines hidden --- | 1356.Ic echo 1357.Op Fl e | Fl n 1358.Op Ar string 1359.Xc 1360Print 1361.Ar string 1362to the standard output with a newline appended. 1363.Bl -tag -width indent --- 600 unchanged lines hidden --- |