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:PROMPT COMMAND

From BoxMatrix
(Redirected from PROMPT COMMAND)


BoxMatrix >> Environment >> PROMPT_COMMAND @ 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

Bootloader-Env Brandings TIATM-Env Linux-Env AVM-Env Config-Env CGI-Env WebCM-Env Kernel-Cfg Research

Linux-Variable

Goto:   Dependencies   -   Model-Matrix   -   SMW-Browser

Details

Excerpt from:   bashref.info   >>   Bash Variables   >>   PROMPT_COMMAND variable

PROMPT_COMMAND

If set, the value is interpreted as a command to execute before the
printing of each primary prompt ('$PS1').

Excerpt from:   bashref.info   >>   Controlling the Prompt   >>   PROMPT_COMMAND variable

PROMPT_COMMAND


Controlling the Prompt

The value of the variable 'PROMPT_COMMAND' is examined just before Bash
prints each primary prompt. If 'PROMPT_COMMAND' is set and has a
non-null value, then the value is executed just as if it had been typed
on the command line.

In addition, the following table describes the special characters
which can appear in the prompt variables 'PS1' to 'PS4':

a
A bell character.
d
The date, in 'Weekday Month Date' format (e.g., 'Tue May 26').
D{FORMAT}
The FORMAT is passed to 'strftime'(3) and the result is inserted
into the prompt string; an empty FORMAT results in a
locale-specific time representation. The braces are required.
e
An escape character.
h
The hostname, up to the first '.'.
H
The hostname.
j
The number of jobs currently managed by the shell.
l
The basename of the shell's terminal device name.

A newline.

A carriage return.
s
The name of the shell, the basename of '$0' (the portion following
the final slash).

The time, in 24-hour HH:MM:SS format.
T
The time, in 12-hour HH:MM:SS format.
@
The time, in 12-hour am/pm format.
A
The time, in 24-hour HH:MM format.
u
The username of the current user.
v
The version of Bash (e.g., 2.00)
V
The release of Bash, version + patchlevel (e.g., 2.00.0)
w
The current working directory, with '$HOME' abbreviated with a
tilde (uses the '$PROMPT_DIRTRIM' variable).
W
The basename of '$PWD', with '$HOME' abbreviated with a tilde.
!
The history number of this command.
#
The command number of this command.
$
If the effective uid is 0, '#', otherwise '$'.
NNN
The character whose ASCII code is the octal value NNN.
\
A backslash.
[
Begin a sequence of non-printing characters. This could be used to
embed a terminal control sequence into the prompt.
]
End a sequence of non-printing characters.

The command number and the history number are usually different: the
history number of a command is its position in the history list, which
may include commands restored from the history file (*note Bash History
Facilities::), while the command number is the position in the sequence
of commands executed during the current shell session.

After the string is decoded, it is expanded via parameter expansion,
command substitution, arithmetic expansion, and quote removal, subject
to the value of the 'promptvars' shell option (*note Bash Builtins::).

Model-Matrix

Daily updated index of the presence and value of this variable for each model. Last update: 2024-04-16 06:16 GMT.
Showing all models using this variable. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.
If the 'Value' column contains '<comp>' the variable is computed at runtime. '<empty>' means the variable is present but empty (rare).
Multiple values typically show a conditional static assignment or different values in different firmware.

Model Firmware Value Origin
FRITZ!Box 4020 7.39 <any> bash
FRITZ!Box 4040 7.39 <any> bash
FRITZ!Box 4060 7.39 <any> bash
FRITZ!Box 5530 Fiber (main) 7.39 <any> bash
FRITZ!Box 5590 Fiber (arm) 7.39 <any> bash
FRITZ!Box 6430 Cable (arm) 7.57 <any> bash
FRITZ!Box 6490 Cable (arm) 7.39 - 7.57 <any> bash
FRITZ!Box 6590 Cable (arm) 7.39 - 7.57 <any> bash
FRITZ!Box 6591 Cable (arm) 7.04 - 7.57 <any> bash
FRITZ!Box 6591 Cable (atom) 7.04 - 7.57 <any> bash
FRITZ!Box 6660 Cable (arm) 7.14 - 7.57 <any> bash
FRITZ!Box 6660 Cable (atom) 7.14 - 7.57 <any> bash
FRITZ!Box 6670 Cable (arm) 7.57 - 7.62 <any> bash
FRITZ!Box 6670 Cable (atom) 7.61 - 7.62 <any> bash
FRITZ!Box 6690 Cable (arm) 7.28 - 7.57 <any> bash
FRITZ!Box 6690 Cable (atom) 7.28 - 7.57 <any> bash
FRITZ!Box 6820 LTE v1 7.39 <any> bash
FRITZ!Box 6820 LTE v2 7.39 <any> bash
FRITZ!Box 6840 LTE 7.39 <any> bash
FRITZ!Box 6850 LTE 7.39 <any> bash
FRITZ!Box 6850 5G 7.39 <any> bash
FRITZ!Box 6890 LTE 7.39 <any> bash
FRITZ!Box 6890 LTE v1 7.39 <any> bash
FRITZ!Box 6890 LTE v2 7.39 <any> bash
FRITZ!Box 7272 7.39 <any> bash
FRITZ!Box 7430 7.39 <any> bash
FRITZ!Box 7490 (main) 7.39 - 7.57 <any> bash
FRITZ!Box 7520 7.39 <any> bash
FRITZ!Box 7520 v2 (arm) 7.39 <any> bash
FRITZ!Box 7530 7.39 <any> bash
FRITZ!Box 7530 AX 7.39 <any> bash
FRITZ!Box 7560 7.39 <any> bash
FRITZ!Box 7590 7.39 <any> bash
FRITZ!Box 7590 AX 7.39 <any> bash
FRITZ!Repeater 600 7.39 <any> bash
FRITZ!Repeater 1200 7.39 <any> bash
FRITZ!WLAN Repeater 1750E 7.39 <any> bash
FRITZ!Repeater 2400 7.39 <any> bash
FRITZ!Repeater 3000 7.39 <any> bash
FRITZ!Repeater 3000 AX 7.39 <any> bash
FRITZ!Powerline 1260E 7.39 <any> bash
41 models use this variable

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

P