[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from she
From: |
Greg Wooledge |
Subject: |
Re: bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from shell window |
Date: |
Mon, 29 Jun 2020 17:32:25 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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.