Changeset View
Changeset View
Standalone View
Standalone View
head/bin/sh/sh.1
Show All 26 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95 | .\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 22, 2015 | .Dd April 18, 2015 | ||||
.Dt SH 1 | .Dt SH 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm sh | .Nm sh | ||||
.Nd command interpreter (shell) | .Nd command interpreter (shell) | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Op Fl /+abCEefhIimnPpTuVvx | .Op Fl /+abCEefhIimnPpTuVvx | ||||
▲ Show 20 Lines • Show All 2,525 Lines • ▼ Show 20 Lines | |||||
The | The | ||||
.Ar action | .Ar action | ||||
may be an empty string or a dash | may be an empty string or a dash | ||||
.Pq Ql - ; | .Pq Ql - ; | ||||
the former causes the specified signal to be ignored | the former causes the specified signal to be ignored | ||||
and the latter causes the default action to be taken. | and the latter causes the default action to be taken. | ||||
Omitting the | Omitting the | ||||
.Ar action | .Ar action | ||||
is another way to request the default action, for compatibility reasons this | and using only signal numbers is another way to request the default action. | ||||
usage is not recommended though. | |||||
In a subshell or utility environment, | In a subshell or utility environment, | ||||
the shell resets trapped (but not ignored) signals to the default action. | the shell resets trapped (but not ignored) signals to the default action. | ||||
The | The | ||||
.Ic trap | .Ic trap | ||||
command has no effect on signals that were ignored on entry to the shell. | command has no effect on signals that were ignored on entry to the shell. | ||||
.Pp | .Pp | ||||
Option | Option | ||||
.Fl l | .Fl l | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |