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:case (bashcmd)
BoxMatrix >> Shell-Commands >> case (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 case!
|
Bash-Command
Command: | case (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: | Execute commands based on pattern matching. |
Goto: Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
Excerpt from: Bash source >> case command
Possible #if / #endif blocks are compile options. There is no mechanism yet on BoxMatrix to detect which of these are set per model.
case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac Execute commands based on pattern matching. Selectively execute COMMANDS based upon WORD matching PATTERN. The `|' is used to separate multiple patterns. Exit Status: Returns the status of the last command executed.
Excerpt from: bashref.info >> Conditional Constructs >> case command
The syntax of the 'case' command is: case WORD in [ [(] PATTERN [| PATTERN]...) COMMAND-LIST ;;]... esac 'case' will selectively execute the COMMAND-LIST corresponding to the first PATTERN that matches WORD. If the 'nocasematch' shell option (see the description of 'shopt' in *note The Shopt Builtin::) is enabled, the match is performed without regard to the case of alphabetic characters. The '|' is used to separate multiple patterns, and the ')' operator terminates a pattern list. A list of patterns and an associated command-list is known as a CLAUSE. Each clause must be terminated with ';;', ';&', or ';;&'. The WORD undergoes tilde expansion, parameter expansion, command substitution, arithmetic expansion, and quote removal before matching is attempted. Each PATTERN undergoes tilde expansion, parameter expansion, command substitution, and arithmetic expansion. There may be an arbitrary number of 'case' clauses, each terminated by a ';;', ';&', or ';;&'. The first pattern that matches determines the command-list that is executed. It's a common idiom to use '*' as the final pattern to define the default case, since that pattern will always match. Here is an example using 'case' in a script that could be used to describe one interesting feature of an animal: echo -n 'Enter the name of an animal: ' read ANIMAL echo -n 'The $ANIMAL has ' case $ANIMAL in horse | dog | cat) echo -n 'four';; man | kangaroo ) echo -n 'two';; *) echo -n 'an unknown number of';; esac echo ' legs.' If the ';;' operator is used, no subsequent matches are attempted after the first pattern match. Using ';&' in place of ';;' causes execution to continue with the COMMAND-LIST associated with the next clause, if any. Using ';;&' in place of ';;' causes the shell to test the patterns in the next clause, if any, and execute any associated COMMAND-LIST on a successful match. The return status is zero if no PATTERN is matched. Otherwise, the return status is the exit status of the COMMAND-LIST executed.
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 |