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:set (bashcmd)
BoxMatrix >> Shell-Commands >> set (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 set!
|
Bash-Command
Command: | set (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: | Set or unset values of shell options and positional parameters. |
Goto: GPL-Browser - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
Excerpt from: Bash source >> set command
Possible #if / #endif blocks are compile options. There is no mechanism yet on BoxMatrix to detect which of these are set per model.
set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...] Set or unset values of shell options and positional parameters. Change the value of shell attributes and positional parameters, or display the names and values of shell variables. Options: -a Mark variables which are modified or created for export. -b Notify of job termination immediately. -e Exit immediately if a command exits with a non-zero status. -f Disable file name generation (globbing). -h Remember the location of commands as they are looked up. -k All assignment arguments are placed in the environment for a command, not just those that precede the command name. -m Job control is enabled. -n Read commands but do not execute them. -o option-name Set the variable corresponding to option-name: allexport same as -a braceexpand same as -B #if defined (READLINE) emacs use an emacs-style line editing interface #endif /* READLINE */ errexit same as -e errtrace same as -E functrace same as -T hashall same as -h #if defined (BANG_HISTORY) histexpand same as -H #endif /* BANG_HISTORY */ #if defined (HISTORY) history enable command history #endif ignoreeof the shell will not exit upon reading EOF interactive-comments allow comments to appear in interactive commands keyword same as -k #if defined (JOB_CONTROL) monitor same as -m #endif noclobber same as -C noexec same as -n noglob same as -f nolog currently accepted but ignored #if defined (JOB_CONTROL) notify same as -b #endif nounset same as -u onecmd same as -t physical same as -P pipefail the return value of a pipeline is the status of the last command to exit with a non-zero status, or zero if no command exited with a non-zero status posix change the behavior of bash where the default operation differs from the Posix standard to match the standard privileged same as -p verbose same as -v #if defined (READLINE) vi use a vi-style line editing interface #endif /* READLINE */ xtrace same as -x -p Turned on whenever the real and effective user ids do not match. Disables processing of the $ENV file and importing of shell functions. Turning this option off causes the effective uid and gid to be set to the real uid and gid. -t Exit after reading and executing one command. -u Treat unset variables as an error when substituting. -v Print shell input lines as they are read. -x Print commands and their arguments as they are executed. #if defined (BRACE_EXPANSION) -B the shell will perform brace expansion #endif /* BRACE_EXPANSION */ -C If set, disallow existing regular files to be overwritten by redirection of output. -E If set, the ERR trap is inherited by shell functions. #if defined (BANG_HISTORY) -H Enable ! style history substitution. This flag is on by default when the shell is interactive. #endif /* BANG_HISTORY */ -P If set, do not resolve symbolic links when executing commands such as cd which change the current directory. -T If set, the DEBUG and RETURN traps are inherited by shell functions. -- Assign any remaining arguments to the positional parameters. If there are no remaining arguments, the positional parameters are unset. - Assign any remaining arguments to the positional parameters. The -x and -v options are turned off. Using + rather than - causes these flags to be turned off. The flags can also be used upon invocation of the shell. The current set of flags may be found in $-. The remaining n ARGs are positional parameters and are assigned, in order, to $1, $2, .. $n. If no ARGs are given, all shell variables are printed. Exit Status: Returns success unless an invalid option is given.
Excerpt from: bashref.info >> The Set Builtin >> set command
set [--abefhkmnptuvxBCEHPT] [-o OPTION-NAME] [ARGUMENT ...] set [+abefhkmnptuvxBCEHPT] [+o OPTION-NAME] [ARGUMENT ...] If no options or arguments are supplied, 'set' displays the names and values of all shell variables and functions, sorted according to the current locale, in a format that may be reused as input for setting or resetting the currently-set variables. Read-only variables cannot be reset. In POSIX mode, only shell variables are listed. When options are supplied, they set or unset shell attributes. Options, if specified, have the following meanings: -a Each variable or function that is created or modified is given the export attribute and marked for export to the environment of subsequent commands. -b Cause the status of terminated background jobs to be reported immediately, rather than before printing the next primary prompt. -e Exit immediately if a pipeline (*note Pipelines::), which may consist of a single simple command (*note Simple Commands::), a list (*note Lists::), or a compound command (*note Compound Commands::) returns a non-zero status. The shell does not exit if the command that fails is part of the command list immediately following a 'while' or 'until' keyword, part of the test in an 'if' statement, part of any 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 with '!'. If a compound command other than a subshell returns a non-zero status because a command failed while '-e' was being ignored, the shell does not exit. A trap on 'ERR', if set, is executed before the shell exits. This option applies to the shell environment and each subshell environment separately (*note Command Execution Environment::), and may cause subshells to exit before executing all the commands in the subshell. If a compound command or shell function executes in a context where '-e' is being ignored, none of the commands executed within the compound command or function body will be affected by the '-e' setting, even if '-e' is set and a command returns a failure status. If a compound command or shell function sets '-e' while executing in a context where '-e' is ignored, that setting will not have any effect until the compound command or the command containing the function call completes. -f Disable filename expansion (globbing). -h Locate and remember (hash) commands as they are looked up for execution. This option is enabled by default. -k All arguments in the form of assignment statements are placed in the environment for a command, not just those that precede the command name. -m Job control is enabled (*note Job Control::). All processes run in a separate process group. When a background job completes, the shell prints a line containing its exit status. -n Read commands but do not execute them. This may be used to check a script for syntax errors. This option is ignored by interactive shells. -o OPTION-NAME Set the option corresponding to OPTION-NAME: 'allexport' Same as '-a'. 'braceexpand' Same as '-B'. 'emacs' Use an 'emacs'-style line editing interface (*note Command Line Editing::). This also affects the editing interface used for 'read -e'. 'errexit' Same as '-e'. 'errtrace' Same as '-E'. 'functrace' Same as '-T'. 'hashall' Same as '-h'. 'histexpand' Same as '-H'. 'history' Enable command history, as described in *note Bash History Facilities::. This option is on by default in interactive shells. 'ignoreeof' An interactive shell will not exit upon reading EOF. 'keyword' Same as '-k'. 'monitor' Same as '-m'. 'noclobber' Same as '-C'. 'noexec' Same as '-n'. 'noglob' Same as '-f'. 'nolog' Currently ignored. 'notify' Same as '-b'. 'nounset' Same as '-u'. 'onecmd' Same as '-t'. 'physical' Same as '-P'. 'pipefail' If set, the return value of a pipeline is the value of the last (rightmost) command to exit with a non-zero status, or zero if all commands in the pipeline exit successfully. This option is disabled by default. 'posix' Change the behavior of Bash where the default operation differs from the POSIX standard to match the standard (*note Bash POSIX Mode::). This is intended to make Bash behave as a strict superset of that standard. 'privileged' Same as '-p'. 'verbose' Same as '-v'. 'vi' Use a 'vi'-style line editing interface. This also affects the editing interface used for 'read -e'. 'xtrace' Same as '-x'. -p Turn on privileged mode. In this mode, the '$BASH_ENV' and '$ENV' files are not processed, shell functions are not inherited from the environment, and the 'SHELLOPTS', 'BASHOPTS', 'CDPATH' and 'GLOBIGNORE' variables, if they appear in the environment, are ignored. If the shell is started with the effective user (group) id not equal to the real user (group) id, and the '-p' option is not supplied, these actions are taken and the effective user id is set to the real user id. If the '-p' option is supplied at startup, the effective user id is not reset. Turning this option off causes the effective user and group ids to be set to the real user and group ids. -t Exit after reading and executing one command. -u Treat unset variables and parameters other than the special parameters '@' or '*' as an error when performing parameter expansion. An error message will be written to the standard error, and a non-interactive shell will exit. -v Print shell input lines as they are read. -x Print a trace of simple commands, 'for' commands, 'case' commands, 'select' commands, and arithmetic 'for' commands and their arguments or associated word lists after they are expanded and before they are executed. The value of the 'PS4' variable is expanded and the resultant value is printed before the command and its expanded arguments. -B The shell will perform brace expansion (*note Brace Expansion::). This option is on by default. -C Prevent output redirection using '>', '>&', and '<>' from overwriting existing files. -E If set, any trap on 'ERR' is inherited by shell functions, command substitutions, and commands executed in a subshell environment. The 'ERR' trap is normally not inherited in such cases. -H Enable '!' style history substitution (*note History Interaction::). This option is on by default for interactive shells. -P If set, do not resolve symbolic links when performing commands such as 'cd' which change the current directory. The physical directory is used instead. By default, Bash follows the logical chain of directories when performing commands which change the current directory. For example, if '/usr/sys' is a symbolic link to '/usr/local/sys' then: $ cd /usr/sys; echo $PWD /usr/sys $ cd ..; pwd /usr If 'set -P' is on, then: $ cd /usr/sys; echo $PWD /usr/local/sys $ cd ..; pwd /usr/local -T If set, any trap on 'DEBUG' and 'RETURN' are inherited by shell functions, command substitutions, and commands executed in a subshell environment. The 'DEBUG' and 'RETURN' traps are normally not inherited in such cases. -- If no arguments follow this option, then the positional parameters are unset. Otherwise, the positional parameters are set to the ARGUMENTS, even if some of them begin with a '-'. - Signal the end of options, cause all remaining ARGUMENTS to be assigned to the positional parameters. The '-x' and '-v' options are turned off. If there are no arguments, the positional parameters remain unchanged. Using '+' rather than '-' causes these options to be turned off. The options can also be used upon invocation of the shell. The current set of options may be found in '$-'. The remaining N ARGUMENTS are positional parameters and are assigned, in order, to '$1', '$2', ... '$N'. The special parameter '#' is set to N. The return status is always zero unless an invalid option is supplied.
GPL-Browser
Daily updated index of all set 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 set 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 |