Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16496

Re: bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from shell window

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from shell window
Date 2020-06-29 17:32 -0400
Message-ID <mailman.680.1593466351.2574.bug-bash@gnu.org> (permalink)
References <576596d2aa2b49e69afbb0577a140a40@express-scripts.com> <20200629213225.GZ22833@eeg.ccf.org>

Show all headers | View raw


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.

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from shell window Greg Wooledge <wooledg@eeg.ccf.org> - 2020-06-29 17:32 -0400

csiph-web