mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Convert \\subsection sections into rst format
This commit is contained in:
@@ -7,7 +7,8 @@ Synopsis
|
||||
trap [OPTIONS] [[ARG] REASON ... ]
|
||||
|
||||
|
||||
\subsection trap-description Description
|
||||
Description
|
||||
------------
|
||||
|
||||
`trap` is a wrapper around the fish event delivery framework. It exists for backwards compatibility with POSIX shells. For other uses, it is recommended to define an <a href='index.html#event'>event handler</a>.
|
||||
|
||||
@@ -31,7 +32,8 @@ Signal names are case insensitive and the `SIG` prefix is optional.
|
||||
|
||||
The return status is 1 if any `REASON` is invalid; otherwise trap returns 0.
|
||||
|
||||
\subsection trap-example Example
|
||||
Example
|
||||
------------
|
||||
|
||||
\fish
|
||||
trap "status --print-stack-trace" SIGUSR1
|
||||
|
||||
Reference in New Issue
Block a user