Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Greg Wooledge Newsgroups: gnu.bash.bug 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 Lines: 18 Approved: bug-bash@gnu.org Message-ID: References: <576596d2aa2b49e69afbb0577a140a40@express-scripts.com> <20200629213225.GZ22833@eeg.ccf.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1593466351 30058 209.51.188.17 (29 Jun 2020 21:32:31 GMT) X-Complaints-To: action@cs.stanford.edu Cc: "bug-bash@gnu.org" To: "Krongard, William T. \(BLM\)" Envelope-to: bug-bash@gnu.org Mail-Followup-To: "Krongard, William T. (BLM)" , "bug-bash@gnu.org" Content-Disposition: inline In-Reply-To: <576596d2aa2b49e69afbb0577a140a40@express-scripts.com> User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: none client-ip=139.137.100.1; envelope-from=wooledg@eeg.ccf.org; helo=mail.eeg.ccf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/29 17:32:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200629213225.GZ22833@eeg.ccf.org> X-Mailman-Original-References: <576596d2aa2b49e69afbb0577a140a40@express-scripts.com> Xref: csiph.com gnu.bash.bug:16496 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.