MPE/iX Shell and Utilities Reference Manual, Vol 1

bc(1) MPE/iX Shell and Utilities bc(1)
Message: shell command failed to execute
Cause: You specified the sh statement with command as its argument and bc failed to
run command.
Action: Check the syntax of the specified command.
Message: sqrt of negative number
Cause: You attempted to take the square root of a negative number.
Action: Only use the sqrt function with positive numbers.
Message: string is too long
Cause: You specified a string that was longer than the maximum permitted length, as
defined by the value of the configuration variable BC_STRING_MAX.
Action: Specify a shorter string.
Message: syntax error
Cause: A syntax error was found.
Action: Correct the syntax error.
Message: Unknown option "–option"
Cause: You specified an option that is not valid for bc.
Action: Check the DESCRIPTION section for a list of valid bc options.
Message: valid array index is 0 through num
Cause: You specified an array index that was not in the range 0 to BC_DIM_MAX-1,
where BC_DIM_MAX is a configuration variable indicating the maximum num-
ber of elements that a bc array may have.
Action: Specify an array index in the indicated range.
Message: var’ can only have values from num1 through num2
Cause: You attempted to assign a value to the variable var that was not in the range
num1 to num2.
Action: Only assign values in the range num1 to num2 to the variable var.
Message: warning: body of if/else statement is empty
Cause: You did not supply any statements for the body of an if or if/else construct.
bc only generates this message when you have specified the –i option.
Action: Make sure that this is what you intended. Check the DESCRIPTION section for
a discussion of bc syntax.
Message: warning: ’=-’ operator assumed
Cause: This version of bc permits the use of the old style assignment operators like =-
rather than -=. This can be ambiguous since a=-2 can mean a=-2or a
=-2.
Action: Use spaces to clarify the syntax of the expression.
Commands and Utilities 1-65