System Feature
systemvar
Purpose
Predefined (system) variables in the system
Syntax
System variables listed below can be accessed using the $ sign. Their values can be reset
using the set command.
Please not that these system variables are independent of the variables that are in use by
the operating system.
Description
The following variables are system variables.
Name Type Usage Default value
------- ------- ------------------------------- -------------
isep str Input Separator. " \t\n\r"
Each character in the value
of this variable is considered
a separator character when
parsing commands on command line,
functions, scripts, etc.
lsep str Line Separator. "\n"
Each character in the value
of this variable is considered
a separator character when
parsing lines within a string.
wsep str Word Separator. " ,\t"
Each character in the value
of this variable is considered
a separator character when
parsing words within a line.
indent str Lines within a block are "...."
indented by the value of
this variable.
path str A list of directories which are "C:/Scripts"
searched for finding scripts. This
variable is used by script command.
The directories may be local or on
the internet. Directories are separated
by the pipe (|) character.
fexists bool true if a specified file exists, false
false otherwise.
Used by lf and af commands.
fname str Name of a file. ""
Used by lf and af commands.
ftype str File type of a file. ""
Used by lf and af commands.
fatime str Latest access time of a file. ""
Used by lf and af commands.
fctime str File creation time of a file. ""
Used by lf and af commands.
fmtime str Latest modification time of a file. ""
Used by lf and af commands.
fsize int Size in bytes of a file. ""
Used by lf and af commands.
rprecision int Any time a real number is printed, 2
it is printed in this precision or in
these many decimal places. If a number less
than 0 is assigned to this variable, 0 is assumed.
If a number greater than 30 (this limit is
processor-dependent) is assigned, 30 is assumed.
rexponent int Any time a positive real number is 30
greater than 10**(rexponent) or less than
10**(-rexponent), it is printed in exponent
format, such as, -1.23e+02 . Similar consideration
is applied to a negative real number.
If a number less than 0 is assigned to this
variable, 0 is assumed. If a number
greater than 30 (this limit is
processor-dependent) is assigned, 30 is assumed.
exitcode int Code from the last executed exit command. 0
If an exit command has not been executed yet, or
if the last executed exit command did not specify a code,
this value is 0.
breakcode int Code from the last executed break command. 0
If a break command has not been executed yet, or
if the last executed break command did not specify a code,
this value is 0.
continuecode int Code from the last executed continue command. 0
If a continue command has not been executed yet, or
if the last executed continue command did not specify a code,
this value is 0.
Restrictions
You are free to change the values of these system variables. If you do, make sure that you reset
them back to their original values when done. These variables are used by several commands,
and unintended values for them may produce unintended results.
Valid Examples
set $wsep=" "
Will make sure that only the space character is considered word separator, and tab character is not
considered a separator character when parsing words.
Invalid Examples
set $isep=7
Will produce error. Only a str value can be assigned to a str variable, and $isep is str variable.
See Also
echo
set
constant
var
startup
|
© 2008-2010, biterScripting.com. All rights reserved.
biterScripting, biterScript, biterBrowser, biterScripting.com, FVA (Forward Variable Assignment) are trademarks of biterScripting.com. Is it biterScripting-compatible ? is a service mark of biterScripting.com.
Explorer, Unix, Windows are trademarks, service marks or other forms of intellectual property of their respective owners.
|