MPE/iX Shell and Utilities Reference Manual, Vol 1

bc(1) MPE/iX Shell and Utilities bc(1)
FILES
bc uses the following file:
/usr/lib/lib.b
File containing the library of functions loaded with –l.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
Messages
Message: break statement found outside of loop
Cause: bc encountered a break statement when it was not performing a for or
while loop.
Action: Make sure that all break statements occur within for or while loops.
Message: built-in var can’t be used as a parameter or auto vari-
able
Cause: You attempted to use the built-in variable var as a parameter or auto variable.
Action: Do not use built-in variables as parameters or auto variables.
Message: can’t pass array to ’var
Cause: You attempted to pass an array to the scalar variable var.
Action: Make sure that the value which you pass to a scalar variable is a scalar.
Message: can’t pass scalar to ’var[]’
Cause: You attempted to pass a scalar to the array var[].
Action: Make sure that the value which you pass to an array variable is an array.
Message: divide by 0
Cause: You attempted to divide by 0.
Action: Do not divide by 0.
Message: end of file in comment starting on line num of filename
Cause: bc encountered the end-of-file character when reading a comment which begins
on line num of the file filename.
Action: Make sure that the file filename contains a /* to end each comment begun with
a */.
Commands and Utilities 1-63