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.

0
U

Property:read (bashcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> read (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

Info
  
Name-Collision - multiple objects in this wiki use the name read!
read (bashcmd) Read a line from the standard input and split it into fields.
read (bbcmd) Read a line from standard input.

Bash-Command

Goto:   GPL-Browser  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

Excerpt from:   Bash source   >>   read command

Possible #if / #endif blocks are compile options. There is no mechanism yet on BoxMatrix to detect which of these are set per model.

read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [-N nchars] [-p prompt] [-t timeout] [-u fd] [name ...]

Read a line from the standard input and split it into fields.

Reads a single line from the standard input, or from file descriptor FD
if the -u option is supplied.  The line is split into fields as with word
splitting, and the first word is assigned to the first NAME, the second
word to the second NAME, and so on, with any leftover words assigned to
the last NAME.  Only the characters found in $IFS are recognized as word
delimiters.

If no NAMEs are supplied, the line read is stored in the REPLY variable.

Options:
  -a array    assign the words read to sequential indices of the array
        variable ARRAY, starting at zero
  -d delim    continue until the first character of DELIM is read, rather
        than newline
  -e    use Readline to obtain the line in an interactive shell
  -i text    use TEXT as the initial text for Readline
  -n nchars    return after reading NCHARS characters rather than waiting
        for a newline, but honor a delimiter if fewer than
        NCHARS characters are read before the delimiter
  -N nchars    return only after reading exactly NCHARS characters, unless
        EOF is encountered or read times out, ignoring any
        delimiter
  -p prompt    output the string PROMPT without a trailing newline before
        attempting to read
  -r    do not allow backslashes to escape any characters
  -s    do not echo input coming from a terminal
  -t timeout    time out and return failure if a complete line of
        input is not read within TIMEOUT seconds.  The value of the
        TMOUT variable is the default timeout.  TIMEOUT may be a
        fractional number.  If TIMEOUT is 0, read returns
        immediately, without trying to read any data, returning
        success only if input is available on the specified
        file descriptor.  The exit status is greater than 128
        if the timeout is exceeded
  -u fd    read from file descriptor FD instead of the standard input

Exit Status:
The return code is zero, unless end-of-file is encountered, read times out
(in which case it's greater than 128), a variable assignment error occurs,
or an invalid file descriptor is supplied as the argument to -u.

Excerpt from:   bashref.info   >>   Bash Builtins   >>   read command

read [-ers] [-a ANAME] [-d DELIM] [-i TEXT] [-n NCHARS]
         [-N NCHARS] [-p PROMPT] [-t TIMEOUT] [-u FD] [NAME ...]

One line is read from the standard input, or from the file
descriptor FD supplied as an argument to the '-u' option, split
into words as described above in *note Word Splitting::, and the
first word is assigned to the first NAME, the second word to the
second NAME, and so on.  If there are more words than names, the
remaining words and their intervening delimiters are assigned to
the last NAME.  If there are fewer words read from the input stream
than names, the remaining names are assigned empty values.  The
characters in the value of the 'IFS' variable are used to split the
line into words using the same rules the shell uses for expansion
(described above in *note Word Splitting::).  The backslash
character  may be used to remove any special meaning for the
next character read and for line continuation.  If no names are
supplied, the line read is assigned to the variable 'REPLY'.  The
exit status is zero, unless end-of-file is encountered, 'read'
times out (in which case the status is greater than 128), a
variable assignment error (such as assigning to a readonly
variable) occurs, or an invalid file descriptor is supplied as the
argument to '-u'.

Options, if supplied, have the following meanings:

-a ANAME
     The words are assigned to sequential indices of the array
     variable ANAME, starting at 0.  All elements are removed from
     ANAME before the assignment.  Other NAME arguments are
     ignored.

-d DELIM
     The first character of DELIM is used to terminate the input
     line, rather than newline.

-e
     Readline (*note Command Line Editing::) is used to obtain the
     line.  Readline uses the current (or default, if line editing
     was not previously active) editing settings.

-i TEXT
     If Readline is being used to read the line, TEXT is placed
     into the editing buffer before editing begins.

-n NCHARS
     'read' returns after reading NCHARS characters rather than
     waiting for a complete line of input, but honors a delimiter
     if fewer than NCHARS characters are read before the delimiter.

-N NCHARS
     'read' returns after reading exactly NCHARS characters rather
     than waiting for a complete line of input, unless EOF is
     encountered or 'read' times out.  Delimiter characters
     encountered in the input are not treated specially and do not
     cause 'read' to return until NCHARS characters are read.  The
     result is not split on the characters in 'IFS'; the intent is
     that the variable is assigned exactly the characters read
     (with the exception of backslash; see the '-r' option below).

-p PROMPT
     Display PROMPT, without a trailing newline, before attempting
     to read any input.  The prompt is displayed only if input is
     coming from a terminal.

-r
     If this option is given, backslash does not act as an escape
     character.  The backslash is considered to be part of the
     line.  In particular, a backslash-newline pair may not be used
     as a line continuation.

-s
     Silent mode.  If input is coming from a terminal, characters
     are not echoed.

-t TIMEOUT
     Cause 'read' to time out and return failure if a complete line
     of input (or a specified number of characters) is not read
     within TIMEOUT seconds.  TIMEOUT may be a decimal number with
     a fractional portion following the decimal point.  This option
     is only effective if 'read' is reading input from a terminal,
     pipe, or other special file; it has no effect when reading
     from regular files.  If 'read' times out, 'read' saves any
     partial input read into the specified variable NAME.  If
     TIMEOUT is 0, 'read' returns immediately, without trying to
     read and data.  The exit status is 0 if input is available on
     the specified file descriptor, non-zero otherwise.  The exit
     status is greater than 128 if the timeout is exceeded.

-u FD
     Read input from file descriptor FD.

GPL-Browser

Daily updated index of all read code findings on the GPL-Browser. Last update: 2024-11-15 05:10 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.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-11-15 07:53 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-11-15 05:53 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-11-15 07:53 GMT.

Firmware Symbol
0 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.