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 september. Please use hippie2000@webnmail.de instead.

0
U

Property:POSIXLY CORRECT

From BoxMatrix
(Redirected from POSIXLY CORRECT)


BoxMatrix >> Environment >> POSIXLY_CORRECT @ 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 Gallery

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   >>   POSIXLY_CORRECT variable

POSIXLY_CORRECT

If this variable is in the environment when Bash starts, the shell
enters POSIX mode (*note Bash POSIX Mode::) before reading the
startup files, as if the '--posix' invocation option had been
supplied. If it is set while the shell is running, Bash enables
POSIX mode, as if the command
set -o posix
had been executed.

Excerpt from:   bashref.info   >>   Bash POSIX Mode   >>   POSIXLY_CORRECT variable

POSIXLY_CORRECT


Bash POSIX Mode

Starting Bash with the '--posix' command-line option or executing 'set
-o posix' while Bash is running will cause Bash to conform more closely
to the POSIX standard by changing the behavior to match that specified
by POSIX in areas where the Bash default differs.

When invoked as 'sh', Bash enters POSIX mode after reading the
startup files.

The following list is what's changed when 'POSIX mode' is in effect:

1. When a command in the hash table no longer exists, Bash will
re-search '$PATH' to find the new location. This is also available
with 'shopt -s checkhash'.

2. The message printed by the job control code and builtins when a job
exits with a non-zero status is 'Done(status)'.

3. The message printed by the job control code and builtins when a job
is stopped is 'Stopped(SIGNAME)', where SIGNAME is, for example,
'SIGTSTP'.

4. Alias expansion is always enabled, even in non-interactive shells.

5. Reserved words appearing in a context where reserved words are
recognized do not undergo alias expansion.

6. The POSIX 'PS1' and 'PS2' expansions of '!' to the history number
and '!!' to '!' are enabled, and parameter expansion is performed
on the values of 'PS1' and 'PS2' regardless of the setting of the
'promptvars' option.

7. The POSIX startup files are executed ('$ENV') rather than the
normal Bash files.

8. Tilde expansion is only performed on assignments preceding a
command name, rather than on all assignment statements on the line.

9. The default history file is '~/.sh_history' (this is the default
value of '$HISTFILE').

10. Redirection operators do not perform filename expansion on the
word in the redirection unless the shell is interactive.

11. Redirection operators do not perform word splitting on the word in
the redirection.

12. Function names must be valid shell 'name's. That is, they may not
contain characters other than letters, digits, and underscores, and
may not start with a digit. Declaring a function with an invalid
name causes a fatal syntax error in non-interactive shells.

13. Function names may not be the same as one of the POSIX special
builtins.

14. POSIX special builtins are found before shell functions during
command lookup.

15. When printing shell function definitions (e.g., by 'type'), Bash
does not print the 'function' keyword.

16. Literal tildes that appear as the first character in elements of
the 'PATH' variable are not expanded as described above under *note
Tilde Expansion::.

17. The 'time' reserved word may be used by itself as a command. When
used in this way, it displays timing statistics for the shell and
its completed children. The 'TIMEFORMAT' variable controls the
format of the timing information.

18. When parsing and expanding a ${...} expansion that appears within
double quotes, single quotes are no longer special and cannot be
used to quote a closing brace or other special character, unless
the operator is one of those defined to perform pattern removal.
In this case, they do not have to appear as matched pairs.

19. The parser does not recognize 'time' as a reserved word if the
next token begins with a '-'.

20. The '!' character does not introduce history expansion within a
double-quoted string, even if the 'histexpand' option is enabled.

21. If a POSIX special builtin returns an error status, a
non-interactive shell exits. The fatal errors are those listed in
the POSIX standard, and include things like passing incorrect
options, redirection errors, variable assignment errors for
assignments preceding the command name, and so on.

22. A non-interactive shell exits with an error status if a variable
assignment error occurs when no command name follows the assignment
statements. A variable assignment error occurs, for example, when
trying to assign a value to a readonly variable.

23. A non-interactive shell exits with an error status if a variable
assignment error occurs in an assignment statement preceding a
special builtin, but not with any other simple command.

24. A non-interactive shell exits with an error status if the
iteration variable in a 'for' statement or the selection variable
in a 'select' statement is a readonly variable.

25. Non-interactive shells exit if FILENAME in '.' FILENAME is not
found.

26. Non-interactive shells exit if a syntax error in an arithmetic
expansion results in an invalid expression.

27. Non-interactive shells exit if a parameter expansion error occurs.

28. Non-interactive shells exit if there is a syntax error in a script
read with the '.' or 'source' builtins, or in a string processed by
the 'eval' builtin.

29. Process substitution is not available.

30. While variable indirection is available, it may not be applied to
the '#' and '?' special parameters.

31. When expanding the '*' special parameter in a pattern context
where the expansion is double-quoted does not treat the '$*' as if
it were double-quoted.

32. Assignment statements preceding POSIX special builtins persist in
the shell environment after the builtin completes.

33. Assignment statements preceding shell function calls persist in
the shell environment after the function returns, as if a POSIX
special builtin command had been executed.

34. The 'command' builtin does not prevent builtins that take
assignment statements as arguments from expanding them as
assignment statements; when not in POSIX mode, assignment builtins
lose their assignment statement expansion properties when preceded
by 'command'.

35. The 'bg' builtin uses the required format to describe each job
placed in the background, which does not include an indication of
whether the job is the current or previous job.

36. The output of 'kill -l' prints all the signal names on a single
line, separated by spaces, without the 'SIG' prefix.

37. The 'kill' builtin does not accept signal names with a 'SIG'
prefix.

38. The 'export' and 'readonly' builtin commands display their output
in the format required by POSIX.

39. The 'trap' builtin displays signal names without the leading
'SIG'.

40. The 'trap' builtin doesn't check the first argument for a possible
signal specification and revert the signal handling to the original
disposition if it is, unless that argument consists solely of
digits and is a valid signal number. If users want to reset the
handler for a given signal to the original disposition, they should
use '-' as the first argument.

41. The '.' and 'source' builtins do not search the current directory
for the filename argument if it is not found by searching 'PATH'.

42. Enabling POSIX mode has the effect of setting the
'inherit_errexit' option, so subshells spawned to execute command
substitutions inherit the value of the '-e' option from the parent
shell. When the 'inherit_errexit' option is not enabled, Bash
clears the '-e' option in such subshells.

43. When the 'alias' builtin displays alias definitions, it does not
display them with a leading 'alias ' unless the '-p' option is
supplied.

44. When the 'set' builtin is invoked without options, it does not
display shell function names and definitions.

45. When the 'set' builtin is invoked without options, it displays
variable values without quotes, unless they contain shell
metacharacters, even if the result contains nonprinting characters.

46. When the 'cd' builtin is invoked in LOGICAL mode, and the pathname
constructed from '$PWD' and the directory name supplied as an
argument does not refer to an existing directory, 'cd' will fail
instead of falling back to PHYSICAL mode.

47. The 'pwd' builtin verifies that the value it prints is the same as
the current directory, even if it is not asked to check the file
system with the '-P' option.

48. When listing the history, the 'fc' builtin does not include an
indication of whether or not a history entry has been modified.

49. The default editor used by 'fc' is 'ed'.

50. The 'type' and 'command' builtins will not report a non-executable
file as having been found, though the shell will attempt to execute
such a file if it is the only so-named file found in '$PATH'.

51. The 'vi' editing mode will invoke the 'vi' editor directly when
the 'v' command is run, instead of checking '$VISUAL' and
'$EDITOR'.

52. When the 'xpg_echo' option is enabled, Bash does not attempt to
interpret any arguments to 'echo' as options. Each argument is
displayed, after escape characters are converted.

53. The 'ulimit' builtin uses a block size of 512 bytes for the '-c'
and '-f' options.

54. The arrival of 'SIGCHLD' when a trap is set on 'SIGCHLD' does not
interrupt the 'wait' builtin and cause it to return immediately.
The trap command is run once for each child that exits.

55. The 'read' builtin may be interrupted by a signal for which a trap
has been set. If Bash receives a trapped signal while executing
'read', the trap handler executes and 'read' returns an exit status
greater than 128.

56. Bash removes an exited background process's status from the list
of such statuses after the 'wait' builtin is used to obtain it.

There is other POSIX behavior that Bash does not implement by default
even when in POSIX mode. Specifically:

1. The 'fc' builtin checks '$EDITOR' as a program to edit history
entries if 'FCEDIT' is unset, rather than defaulting directly to
'ed'. 'fc' uses 'ed' if 'EDITOR' is unset.

2. As noted above, Bash requires the 'xpg_echo' option to be enabled
for the 'echo' builtin to be fully conformant.

Bash can be configured to be POSIX-conformant by default, by
specifying the '--enable-strict-posix-default' to 'configure' when
building (*note Optional Features::).

Model-Matrix

Daily updated index of the presence and value of this variable for each model. Last update: 2022-10-03 04:52 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 2.76 - 4.02 <any> busybox, uClibc
FRITZ!Box SL 1.63 - 3.94 <any> uClibc
FRITZ!Box 2030 3.73 - 3.93 <any> uClibc
FRITZ!Box 2031 4.15 <any> busybox, uClibc
FRITZ!Box 2070 3.87 - 4.15 <any> busybox, uClibc
FRITZ!Box 2110 4.47 - 4.52 <any> uClibc
FRITZ!Box 2170 4.31 - 4.57 <any> uClibc
FRITZ!Box SL WLAN 3.23 - 4.34 <any> busybox, uClibc
FRITZ!Box WLAN 3020 3.23 - 4.34 <any> busybox, uClibc
FRITZ!Box WLAN 3030 3.65 - 4.34 <any> busybox, uClibc
FRITZ!Box WLAN 3050 3.63 - 4.07 <any> busybox, uClibc
FRITZ!Box WLAN 3070 3.87 - 4.15 <any> busybox, uClibc
FRITZ!Box WLAN 3130 4.21 - 4.34 <any> busybox, uClibc
FRITZ!Box WLAN 3131 4.29 - 4.57 <any> uClibc
FRITZ!Box WLAN 3170 4.31 - 4.58 <any> uClibc
FRITZ!Box WLAN 3270 4.57 - 5.54 <any> busybox, uClibc
FRITZ!Box WLAN 3270 v3 4.77 - 5.54 <any> busybox, uClibc
FRITZ!Box WLAN 3270 IT 5.23 - 5.52 <any> busybox, uClibc
FRITZ!Box 3272 5.50 - 6.88 <any> busybox, uClibc
FRITZ!Box WLAN 3370 5.01 - 6.55 <any> busybox, uClibc
FRITZ!Box 3390 5.50 - 6.55 <any> busybox, uClibc
FRITZ!Box 3490 (main) 6.20 - 7.30 <any> busybox, uClibc
FRITZ!Box 3490 (scrpn) 6.98 - 7.30 <any> busybox, uClibc
FRITZ!Box Fon ata 3.23 - 4.28 <any> busybox, uClibc
FRITZ!Box Fon ata 1020 3.23 - 4.28 <any> busybox, uClibc
FRITZ!Box 4020 6.27 - 7.02 <any> busybox, uClibc
FRITZ!Box 4040 6.50 - 7.29 <any> busybox, uClibc
FRITZ!Box 4060 7.26 - 7.30 <any> busybox
FRITZ!Box Fon 1.120 - 4.49 <any> busybox, uClibc
FRITZ!Box Fon 5010 3.88 - 4.43 <any> busybox, uClibc
FRITZ!Box Fon 5012 3.88 - 4.27 <any> busybox, uClibc
FRITZ!Box Fon 5050 3.23 - 4.31 <any> busybox, uClibc
FRITZ!Box Fon 5113 4.82 - 4.83 <any> uClibc
FRITZ!Box Fon 5124 4.47 - 4.77 <any> uClibc
FRITZ!Box Fon 5140 4.25 - 4.67 <any> busybox, uClibc
VoIP Gateway 5188 4.28 - 4.81 <any> uClibc
FRITZ!Box 5490 (main) 6.51 - 7.29 <any> busybox, uClibc
FRITZ!Box 5490 (scrpn) 6.98 - 7.29 <any> busybox, uClibc
FRITZ!Box 5491 (main) 6.98 - 7.29 <any> busybox, uClibc
FRITZ!Box 5491 (scrpn) 6.98 - 7.29 <any> busybox, uClibc
FRITZ!Box 5530 Fiber (boot) 7.21 - 7.30 <any> busybox
FRITZ!Box 5530 Fiber (main) 7.21 - 7.30 <any> busybox, uClibc
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.29 <any> busybox
FRITZ!Box 5590 Fiber (boot) 7.27 - 7.29 <any> busybox
FRITZ!Box 5590 Fiber (prx) 7.27 - 7.29 <any> busybox
FRITZ!Box 6320 Cable v1 6.03 - 6.04 <any> busybox, uClibc
FRITZ!Box 6320 Cable v2 6.21 <any> busybox, uClibc
FRITZ!Box 6340 Cable 5.24 <any> busybox, uClibc
FRITZ!Box 6360 Cable 4.85 - 6.51 <any> busybox, uClibc
FRITZ!Box 6430 Cable (arm) 6.84 - 7.29 <any> busybox, uClibc
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 <any> busybox, uClibc
FRITZ!Box 6490 Cable (arm) 6.20 - 7.29 <any> busybox, uClibc
FRITZ!Box 6490 Cable (atom) 6.20 - 7.29 <any> busybox, uClibc
FRITZ!Box 6590 Cable (arm) 6.83 - 7.29 <any> busybox, uClibc
FRITZ!Box 6590 Cable (atom) 6.83 - 7.29 <any> busybox, uClibc
FRITZ!Box 6591 Cable (arm) 7.04 - 7.39 <any> bash, busybox, glibc
FRITZ!Box 6591 Cable (atom) 7.04 - 7.39 <any> bash, busybox, glibc
FRITZ!Box 6660 Cable (arm) 7.14 - 7.39 <any> bash, busybox, glibc
FRITZ!Box 6660 Cable (atom) 7.14 - 7.39 <any> bash, busybox, glibc
FRITZ!Box 6690 Cable (arm) 7.28 - 7.39 <any> bash, busybox, glibc
FRITZ!Box 6690 Cable (atom) 7.28 - 7.39 <any> bash, busybox, glibc
FRITZ!Box 6810 LTE 5.27 - 6.34 <any> busybox, uClibc
FRITZ!Box 6820 LTE v1 6.40 - 7.29 <any> busybox, uClibc
FRITZ!Box 6820 LTE v2 6.40 - 7.29 <any> busybox, uClibc
FRITZ!Box 6820 LTE v3 7.19 - 7.29 <any> busybox, uClibc
FRITZ!Box 6840 LTE 5.07 - 6.87 <any> busybox, uClibc
FRITZ!Box 6842 LTE 6.01 - 6.34 <any> busybox, uClibc
FRITZ!Box 6850 LTE 7.21 - 7.39 <any> busybox, uClibc
FRITZ!Box 6850 5G 7.24 - 7.30 <any> busybox, uClibc
FRITZ!Box 6890 LTE 6.84 - 7.39 <any> busybox, uClibc
FRITZ!Box 6890 LTE v1 6.84 - 7.39 <any> busybox, uClibc
FRITZ!Box 6890 LTE v2 6.84 - 7.39 <any> busybox, uClibc
FRITZ!Box Fon WLAN 3.14 - 4.49 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7050 3.29 - 4.50 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7112 4.76 - 4.88 <any> uClibc
FRITZ!Box Fon WLAN 7113 4.40 - 4.86 <any> uClibc
FRITZ!Box Fon WLAN 7113 DE 4.40 - 4.77 <any> uClibc
FRITZ!Box Fon WLAN 7113 INT 4.82 - 4.86 <any> uClibc
FRITZ!Box Fon WLAN 7140 4.02 - 4.77 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7141 4.14 - 4.77 <any> uClibc
FRITZ!Fon 7150 4.27 - 4.77 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7170 3.91 - 4.99 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7170 v1 3.91 - 4.99 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7170 v2 3.91 - 4.99 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7240 4.65 - 6.06 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7270 v1 4.44 - 4.99 <any> uClibc
FRITZ!Box Fon WLAN 7270 v2 4.63 - 6.06 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7270 v3 4.70 - 6.06 <any> busybox, uClibc
FRITZ!Box 7272 5.55 - 6.88 <any> busybox, uClibc
FRITZ!Box 7312 5.23 - 6.55 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7320 4.85 - 6.34 <any> busybox, uClibc
FRITZ!Box 7330 5.06 - 6.55 <any> busybox, uClibc
FRITZ!Box 7330 SL 5.08 - 6.55 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7340 4.83 - 6.06 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7360 SL 5.04 - 6.34 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7360 v1 5.06 - 6.35 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7360 v2 5.22 - 6.87 <any> busybox, uClibc
FRITZ!Box 7362 SL 5.53 - 7.13 <any> busybox, uClibc
FRITZ!Box 7369 6.30 - 6.32 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7390 4.81 - 6.87 <any> busybox, uClibc
FRITZ!Box 7412 6.21 - 6.87 <any> busybox, uClibc
FRITZ!Box 7430 6.26 - 7.29 <any> busybox, uClibc
FRITZ!Box 7490 (main) 5.57 - 7.29 <any> busybox, uClibc
FRITZ!Box 7490 (scrpn) 6.98 - 7.29 <any> busybox, uClibc
FRITZ!Box 7510 7.30 <any> busybox
FRITZ!Box 7520 6.98 - 7.29 <any> busybox, uClibc
FRITZ!Box 7520 v2 (arm) 7.31 <any> busybox, uClibc
FRITZ!Box 7530 6.93 - 7.39 <any> busybox, uClibc
FRITZ!Box 7530 AX 7.20 - 7.39 <any> busybox, glibc
FRITZ!Box 7560 6.51 - 7.29 <any> busybox, uClibc
FRITZ!Box Fon WLAN 7570 vDSL 4.70 - 4.94 <any> uClibc
FRITZ!Box 7580 6.51 - 7.29 <any> busybox, uClibc
FRITZ!Box 7581 6.54 - 7.16 <any> busybox, glibc, uClibc
FRITZ!Box 7582 6.83 - 7.16 <any> busybox, glibc, uClibc
FRITZ!Box 7583 7.01 - 7.31 <any> busybox, uClibc
FRITZ!Box 7583 VDSL 7.19 - 7.31 <any> busybox
FRITZ!Box 7590 6.83 - 7.39 <any> busybox, uClibc
FRITZ!Box 7590 AX 7.19 - 7.39 <any> busybox
FRITZ!WLAN Repeater N/G 4.65 - 4.88 <any> uClibc
FRITZ!WLAN Repeater 300E 5.01 - 6.33 <any> busybox, uClibc
FRITZ!WLAN Repeater 310 A 5.24 - 7.14 <any> busybox, uClibc
FRITZ!WLAN Repeater 310 B 6.30 - 7.14 <any> busybox, uClibc
FRITZ!WLAN Repeater 450E 6.00 - 7.14 <any> busybox, uClibc
FRITZ!Repeater 600 7.11 - 7.29 <any> busybox, uClibc
FRITZ!Repeater 600 v2 7.19 - 7.29 <any> busybox, uClibc
FRITZ!WLAN Repeater 1160 6.51 - 7.14 <any> busybox, uClibc
FRITZ!Repeater 1200 7.11 - 7.29 <any> busybox, uClibc
FRITZ!Repeater 1200 AX 7.27 - 7.30 <any> busybox
FRITZ!WLAN Repeater 1750E 6.12 - 7.29 <any> busybox, uClibc
FRITZ!Repeater 2400 7.12 - 7.39 <any> busybox, uClibc
FRITZ!Repeater 3000 6.98 - 7.39 <any> busybox, uClibc
FRITZ!Repeater 3000 AX 7.39 <any> busybox
FRITZ!Repeater 6000 7.19 - 7.29 <any> busybox
FRITZ!WLAN Repeater DVB-C 6.12 - 7.02 <any> busybox, uClibc
FRITZ!Powerline 540E 5.58 - 7.14 <any> busybox, uClibc
FRITZ!Powerline 546E 5.50 - 7.10 <any> busybox, uClibc
FRITZ!Powerline 1240E 6.33 - 7.14 <any> busybox, uClibc
FRITZ!Powerline 1260E 6.90 - 7.29 <any> busybox, uClibc
FRITZ!Powerline 1260 7.08 - 7.29 <any> busybox, uClibc
congstar DSL-Box 4.25 - 4.81 <any> uClibc
congstar komplett Box 4.68 - 4.81 <any> uClibc
Speedport W 501V 3.93 - 4.38 <any> busybox, uClibc
Speedport W 503V 4.68 - 4.81 <any> uClibc
Speedport W 503V MK 4.79 <any> uClibc
Speedport W 701V 4.25 - 4.81 <any> uClibc
Speedport W 721V 4.74 - 4.75 <any> uClibc
Speedport W 722V 4.76 - 4.79 <any> uClibc
Speedport W 900V 4.21 - 4.57 <any> uClibc
Speedport W 920V 4.78 - 4.79 <any> uClibc
Speedport W 101 Bridge 4.68 <any> uClibc
Eumex 300 IP 3.29 - 4.44 <any> busybox, uClibc
Alice IAD 5130 4.65 - 4.71 <any> uClibc
Alice IAD WLAN 3331 4.90 <any> uClibc
Alice IAD 7570 vDSL 4.86 - 5.09 <any> uClibc
154 models use this variable

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

P