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:
$HOMEThe HOME directory of the actual user
$HOSTNAMEThe name of the actual host
$MSH_SELFThe path to the running MSH shell
$MSH_TEMP_DIRThe MSH temporary directory (Ex: used by pipe command)
$MSH_DATE_FORMATThe format for internal date
$MSH_FLOAT_FORMATThe format for printing float
$MSH_PROMPTThe current prompt
$MSH_VERSIONThe version of the running MSH shell
$MSH_HISTORYThe path to the MSH command history file
$PATHThe directories lit where to look for external commands
$PWDThe path of the current directory
$USERThe 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
$0The name of this running command
$1 ... $9The 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