Special_variables ( en )
Last modification : 2013/01/26 19:16
|
|
There are some special variables managed by the shell that should not be used for personal use.
Here is the list of these variables:
$HOME | The HOME directory of the actual user | $HOSTNAME | The name of the actual host | $MSH_SELF | The path to the running MSH shell | $MSH_TEMP_DIR | The MSH temporary directory (Ex: used by pipe command) | $MSH_DATE_FORMAT | The format for internal date | $MSH_FLOAT_FORMAT | The format for printing float | $MSH_PROMPT | The current prompt | $MSH_VERSION | The version of the running MSH shell | $MSH_HISTORY | The path to the MSH command history file | $PATH | The directories lit where to look for external commands | $PWD | The path of the current directory | $USER | The name of the actual user | $$ | The process id of the running shell | $! | The process number of the last background command | $? | The return code of the last command | $# | The number of arguments passed to this shell | $0 | The name of this running command | $1 ... $9 | The first ... the 9th argument passed to this running command. If more than 9 parameters are passed to the shell, use the shift command to offset parameters list by one step. $1 will contain the 2nd parameter ... $9 the 10th. Use shift any time you need. | $_ | Reserved for futur use |
|