On Mon, Jun 29, 2020 at 08:24:01PM +0000, Krongard, William T. (BLM) wrote:
> Description:
>         execution of "bash" from shell window gets a division by zero message
> # bash
> bash: (1-0/roothome1): division by 0 (error token is "roothome1)")
> bash: (1-0/roothome1): division by 0 (error token is "roothome1)")
> 
> every command executed is followed by the division by 0 message

This will be caused by something in your environment -- either the PS1
variable, or the PROMPT_COMMAND variable, or a DEBUG trap, which is being
set in one of root's dot files on your system.

Most probably, you've got $(( )) where you meant to have $( ), or
something along those lines.  It'll probably be obvious once you print
out the contents of the PS1 and PROMPT_COMMAND variables, and the
output of "trap" with no arguments.

Reply via email to