syntax:shellvars

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
syntax:shellvars [2013/04/14 11:06]
thebonsai [HISTFILESIZE]
syntax:shellvars [2018/07/12 08:03]
thebonsai BASH_ARGV0
Line 91: Line 91:
 bottom. When a subroutine is executed, the parameters supplied are pushed onto bottom. When a subroutine is executed, the parameters supplied are pushed onto
 ''​BASH_ARGV''​. ''​BASH_ARGV''​.
 +
 +==== BASH_ARGV0 ====
 +
 +^Variable: ​ |''​BASH_ARGV0'' ​ ^Since: ​ |5.0-alpha ​  |
 +^Type: ​ |string ​ ^Read-only: ​ |no  |
 +^Set by Bash:  |yes  ^Default: |same as ''​$0'' ​ |
 +
 +Expands to the name of the shell or shell script - as the special parameter ''​$0''​ does. Assignments to ''​BASH_ARGV0''​ causes the value to be assigned to ''​$0''​.
 +
 +If this parameter is unset, it loses its special properties, even if subsequently reset.
 +
  
 ==== BASH_CMDS ==== ==== BASH_CMDS ====
Line 112: Line 123:
 is executing a command as the result of a trap, in which case it is the command is executing a command as the result of a trap, in which case it is the command
 executing at the time of the trap. executing at the time of the trap.
 +
 +==== BASH_COMPAT ====
 +^Variable: ​ |''​BASH_COMPAT'' ​ ^Since: ​ |4.3-alpha ​ |
 +^Type: ​ |normal variable ​  ​^Read-only: ​ |no  |
 +^Set by Bash:  |no  ^Default: |n/a  |
 +
 +The value is used to set the shell'​s compatibility level. The value may be a decimal number (e.g., ''​4.2''​) or an integer (e.g., ''​42''​) corresponding to the desired com patibility level. If ''​BASH_COMPAT''​ is unset or set to the empty string, the compatibility level is set to the default for the current version. If  ''​BASH_COMPAT''​ is set to a value that is not one of the valid compatibility levels, the shell prints an error message and sets the compatibility level to the default for the current version. The valid compatibility levels correspond to the compatibility options accepted by the shopt builtin. The current version is also a valid value.
  
 ==== BASH_EXECUTION_STRING ==== ==== BASH_EXECUTION_STRING ====
Line 183: Line 201:
  
 Since Bash 2.0 it includes the shell'​s "​release status"​ (alpha[N], beta[N], release). Since Bash 2.0 it includes the shell'​s "​release status"​ (alpha[N], beta[N], release).
 +
 +==== CHILD_MAX ====
 +^Variable: ​ |''​CHILD_MAX'' ​ ^Since: ​ |4.3-alpha ​  |
 +^Type: ​ |normal variable ​  ​^Read-only: ​ |no  |
 +^Set by Bash:  |no  ^Default: |n/a  |
 +
 +Set the number of exited child status values for the shell to remember. Bash will not allow this value to be decreased below a POSIX-mandated minimum, and there is a maximum value (currently 8192) that this may not exceed. The minimum value is system-dependent.
 +
  
  
Line 275: Line 301:
  
 If this parameter is unset, it loses its special properties, even if it is subsequently reset. If this parameter is unset, it loses its special properties, even if it is subsequently reset.
 +
 +==== EPOCHREALTIME ====
 +^Variable: ​ |''​EPOCHREALTIME'' ​ ^Since: ​ |5.0-alpha ​  |
 +^Type: ​ |integer variable ​  ​^Read-only: ​ |no  |
 +^Set by Bash:  |yes  ^Default: |n/a  |
 +
 +Expands to the number of seconds since Unix expoch as a floating point value with micro-second granularity.
 +
 +Assignments to this parameter are ignored. If this parameter is unset, it loses its special properties, even if it is subsequently reset.
 +
 +==== EPOCHSECONDS ====
 +^Variable: ​ |''​EPOCHSECONDS'' ​ ^Since: ​ |5.0-alpha ​  |
 +^Type: ​ |integer indexed array   ​^Read-only: ​ |no  |
 +^Set by Bash:  |yes  ^Default: |n/a  |
 +
 +Expands to the number of seconds since Unix expoch.
 +
 +Assignments to this parameter are ignored. If this parameter is unset, it loses its special properties, even if it is subsequently reset.
 +
  
 ==== EUID ==== ==== EUID ====
  • syntax/shellvars.txt
  • Last modified: 2020/06/28 07:07
  • by thebonsai