If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
Property:trap (bashcmd)
BoxMatrix >> Shell-Commands >> trap (bashcmd) | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl |
News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media |
Startup-Scr | Hotplug-Scr | BusyBox-Cmds | Bash-Cmds | AVM-Cmds | Chipset-Cmds | Linux-Cmds | Shared-Libs | Kernel-Mods | Research |
Name-Collision - multiple objects in this wiki use the name trap!
|
Bash-Command
Command: | trap (bashcmd) - type bash | Wiki | Freetz | IPPF | whmf | AVM | Web |
Location: | Shell-Commands >> Bash-Commands - Origin: Bash | ||||||
Path: | Release: <bash> Lab+Rel: <bash> | ||||||
Properties: | Size: - Firmware: 7.04 - 8.00 | ||||||
Function: | Trap signals and other events. |
Goto: GPL-Browser - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
Excerpt from: Bash source >> trap command
Possible #if / #endif blocks are compile options. There is no mechanism yet on BoxMatrix to detect which of these are set per model.
trap [-lp] [[arg] signal_spec ...] Trap signals and other events. Defines and activates handlers to be run when the shell receives signals or other conditions. ARG is a command to be read and executed when the shell receives the signal(s) SIGNAL_SPEC. If ARG is absent (and a single SIGNAL_SPEC is supplied) or `-', each specified signal is reset to its original value. If ARG is the null string each SIGNAL_SPEC is ignored by the shell and by the commands it invokes. If a SIGNAL_SPEC is EXIT (0) ARG is executed on exit from the shell. If a SIGNAL_SPEC is DEBUG, ARG is executed before every simple command. If a SIGNAL_SPEC is RETURN, ARG is executed each time a shell function or a script run by the . or source builtins finishes executing. A SIGNAL_SPEC of ERR means to execute ARG each time a command's failure would cause the shell to exit when the -e option is enabled. If no arguments are supplied, trap prints the list of commands associated with each signal. Options: -l print a list of signal names and their corresponding numbers -p display the trap commands associated with each SIGNAL_SPEC Each SIGNAL_SPEC is either a signal name in <signal.h> or a signal number. Signal names are case insensitive and the SIG prefix is optional. A signal may be sent to the shell with 'kill -signal $$'. Exit Status: Returns success unless a SIGSPEC is invalid or an invalid option is given.
Excerpt from: bashref.info >> Bourne Shell Builtins >> trap command
trap [-lp] [ARG] [SIGSPEC ...] The commands in ARG are to be read and executed when the shell receives signal SIGSPEC. If ARG is absent (and there is a single SIGSPEC) or equal to '-', each specified signal's disposition is reset to the value it had when the shell was started. If ARG is the null string, then the signal specified by each SIGSPEC is ignored by the shell and commands it invokes. If ARG is not present and '-p' has been supplied, the shell displays the trap commands associated with each SIGSPEC. If no arguments are supplied, or only '-p' is given, 'trap' prints the list of commands associated with each signal number in a form that may be reused as shell input. The '-l' option causes the shell to print a list of signal names and their corresponding numbers. Each SIGSPEC is either a signal name or a signal number. Signal names are case insensitive and the 'SIG' prefix is optional. If a SIGSPEC is '0' or 'EXIT', ARG is executed when the shell exits. If a SIGSPEC is 'DEBUG', the command ARG is executed before every simple command, 'for' command, 'case' command, 'select' command, every arithmetic 'for' command, and before the first command executes in a shell function. Refer to the description of the 'extdebug' option to the 'shopt' builtin (*note The Shopt Builtin::) for details of its effect on the 'DEBUG' trap. If a SIGSPEC is 'RETURN', the command ARG is executed each time a shell function or a script executed with the '.' or 'source' builtins finishes executing. If a SIGSPEC is 'ERR', the command ARG is executed whenever a pipeline (which may consist of a single simple command), a list, or a compound command returns a non-zero exit status, subject to the following conditions. The 'ERR' trap is not executed if the failed command is part of the command list immediately following an 'until' or 'while' keyword, part of the test following the 'if' or 'elif' reserved words, part of a command executed in a '&&' or '||' list except the command following the final '&&' or '||', any command in a pipeline but the last, or if the command's return status is being inverted using '!'. These are the same conditions obeyed by the 'errexit' ('-e') option. Signals ignored upon entry to the shell cannot be trapped or reset. Trapped signals that are not being ignored are reset to their original values in a subshell or subshell environment when one is created. The return status is zero unless a SIGSPEC does not specify a valid signal.
GPL-Browser
Daily updated index of all trap code findings on the GPL-Browser. Last update: 2024-12-23 05:02 GMT.
The Browse
column points to the Path
containing the respective source code on the gpl.boxmatrix.info service.
The SoC
column lists the Chip-Codenames, the Model
column lists the nicks of the Box-Models.
The Diff
column links the comparison of the AVM Kernel to the pristine original from Kernel.org.
The Download
column links the full tarball the respective directory content is extracted from.
The presence of the source does not mean it fits the respective model and architecture. See the Model-Matrix where it's used.
Browse | Path | SoC | Arch | Model | Firmw | Diff | Download |
---|---|---|---|---|---|---|---|
puma7-atom-6591-750 | packages/bash-4.4.18/builtins | Puma7 | ATOM | 6591 | 7.50 | 4.9.279 | Download |
puma7-atom-6670-761 | packages/bash-5.1.16/builtins | Puma7 | ATOM | 6670 | 7.61 | 5.15.111 | Download |
2 directories containing trap source code |
Dependencies
Daily updated index of all dependencies of this command. Last update: 2024-12-23 07:59 GMT.
A *
in the Mod
column marks info from Supportdata-Probes, which will always stay incomplete.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
0 dependencies for this command |
Model-Matrix
Daily updated index of the presence, path and size of this command for each model. Last update: 2024-12-23 05:43 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl)
label in the Model
column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.
Model | Firmware | Path | Size |
---|---|---|---|
FRITZ!Box 6591 Cable (atom) | 7.04 - 8.00 | <bash> | |
FRITZ!Box 6660 Cable (atom) | 7.14 - 8.00 | <bash> | |
FRITZ!Box 6670 Cable (atom) | 7.61 - 7.90 | <bash> | |
FRITZ!Box 6690 Cable (atom) | 7.28 - 7.90 | <bash> | |
4 models use this command |
Symbols
Daily updated index of all symbols of this command. Last update: 2024-12-23 07:59 GMT.
Firmware | Symbol |
---|---|
0 symbols for this command |