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


Groups > gnu.bash.bug > #16498

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

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From "Krongard, William T. (BLM)" <WTKrongard@express-scripts.com>
Newsgroups gnu.bash.bug
Subject bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from shell window
Date Tue, 30 Jun 2020 13:19:41 +0000
Lines 49
Approved bug-bash@gnu.org
Message-ID <mailman.701.1593523190.2574.bug-bash@gnu.org> (permalink)
References <576596d2aa2b49e69afbb0577a140a40@express-scripts.com> <20200629213225.GZ22833@eeg.ccf.org> <64782babf9aa4b6c99b3a8e77d1e70f3@express-scripts.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1593523190 6024 209.51.188.17 (30 Jun 2020 13:19:50 GMT)
X-Complaints-To action@cs.stanford.edu
Cc "bug-bash@gnu.org" <bug-bash@gnu.org>
To Greg Wooledge <wooledg@eeg.ccf.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=express-scripts.com; h=from : to : cc : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version : subject; s=26Nov2018; bh=UK8D8OHxs+1VscnheenCfS/b2AOU7kJB5RKw8uyVyq8=; b=yRMJep79iCthId0xRw9m7BvFImC4+mCcLVnDluAmHDGW7Lih4g3Ks2SI32KebJZcs47n 3UArHOhF8jXoKcuJ5JsqtGyteD1djkYAjIVfH5G1byu3+/85MpiI5m1wsWebttHe495U w2SEEEeKUkkUNQTUyJcJNI56NwJ3PlPTDPkHQwIoXVLxsExCS9tW31pKlxHKWSLr7lI+ y4xpi6SAi7hInJU4tgMl4pRotgJlQaEX69s+r+qEtnJnY6nbuU8mB3MsR8S5bifZquoq VppDEExJID78+WmcEWq50RHmEwDvETbSuXSudaocXpxlwmCt1fPzbAqLCHwd+E/2d0pM EA==
Thread-Topic [EXTERNAL] Re: bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from shell window
Thread-Index AdZOUwvTA/Nr4VixSXaMo3Vfqo4C4gAK0MKAABinEHA=
In-Reply-To <20200629213225.GZ22833@eeg.ccf.org>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [10.222.252.1]
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-06-30_06:2020-06-30, 2020-06-30 signatures=0
Received-SPF pass client-ip=167.211.104.142; envelope-from=prvs=145039fc65=wtkrongard@express-scripts.com; helo=ps2imail03.express-scripts.com
X-detected-operating-system by eggs.gnu.org: First seen = 2020/06/30 09:19:43
X-ACL-Warn Detected OS = Linux 3.x [generic] [fuzzy]
X-Spam_score_int -20
X-Spam_score -2.1
X-Spam_bar --
X-Spam_report (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <64782babf9aa4b6c99b3a8e77d1e70f3@express-scripts.com>
X-Mailman-Original-References <576596d2aa2b49e69afbb0577a140a40@express-scripts.com> <20200629213225.GZ22833@eeg.ccf.org>
Xref csiph.com gnu.bash.bug:16498

Show key headers only | View raw


Greg,

Thank you, found the issue in "root" .profile, you were correct a '1' had been added to Prompt Command variable.


Respectfully,

William Krongard
Express Scripts Services, 
Server Support
Work:  (952)-837-7537
Cell:  (763) 442-0640
Server Support Confluence page:
Server Support landing page
To reach out to the Server Support Team through Mattermost:
https://mattermost.express-scripts.com/express-scripts/channels/server-support





-----Original Message-----
From: Greg Wooledge <wooledg@eeg.ccf.org> 
Sent: Monday, June 29, 2020 4:32 PM
To: Krongard, William T. (BLM) <WTKrongard@express-scripts.com>
Cc: bug-bash@gnu.org
Subject: [EXTERNAL] Re: bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from shell window

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

bash 5.0 on AIX 7.2 server -- Division by 0 when using bash from shell window "Krongard, William T. (BLM)" <WTKrongard@express-scripts.com> - 2020-06-30 13:19 +0000

csiph-web