Restricted User Shell
Dump mode is similar to test mode. The main difference is that in
rush dumps on the standard error a description of
the user request after performing all checks and transformations.
The mode is requested by the --dump=attr (-D attr) option. The argument attr is a comma-separated list of the names of attributes to be included in the dump, or the word ‘all’, standing for all attributes.
Additional options and arguments are the same as for the --test option.
The description is formatted as a JSON object8 with the following attributes. These are also the allowed values for the attr list:
Command line after transformations.
Array of command line arguments after transformations.
Name of the program to be executed. If ‘null’,
will be used.
‘0’ for normal requests, ‘1’ for interactive requests.
Name of the user from the system user database.
UID of the user.
GID of the user.
Home directory of the user, as set in the system user database.
Value of the umask (octal).
Current working directory.
New GID as set by the
newgrp action, or ‘-1’ if
Fork mode. It is a three-state attribute: ‘0’ meaning disabled, ‘1’ meaning enabled, and ‘-1’ meaning default state.
Accounting mode. See ‘fork’, for a description of possible values.
Textual domain for i18n.
Locale directory for i18n.
Dump of the environment (array of assignments).
The attribute ‘all’ stands for all attribute in the same order as listed in the table above.
Well, almost. It diverges from the JSON standard in that slash characters are not escaped in string objects.
This document was generated on October 1, 2016 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.