From owner-freebsd-bugs Tue Oct 9 8:10: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AC8E637B40A for ; Tue, 9 Oct 2001 08:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f99FA1q07122; Tue, 9 Oct 2001 08:10:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9D6C337B403 for ; Tue, 9 Oct 2001 08:08:13 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f99F8DP06881; Tue, 9 Oct 2001 08:08:13 -0700 (PDT) (envelope-from nobody) Message-Id: <200110091508.f99F8DP06881@freefall.freebsd.org> Date: Tue, 9 Oct 2001 08:08:13 -0700 (PDT) From: ulrich To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: gnu/31165: bash core dumps if a function called by PROMPT_COMMAND generates an error Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31165 >Category: gnu >Synopsis: bash core dumps if a function called by PROMPT_COMMAND generates an error >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 09 08:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: ulrich >Release: 4.1 >Organization: >Environment: FreeBSD mozart.infopuls.com 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Sep 8 02:29:03 CEST 2000 root@fbsdi1.infopuls.com:/usr/src/sys/compile/FBSD i386 >Description: If a shell function which is called by PROMPT_COMMAND returns a non-numeric value and generates an error message bush produces a core dump. >How-To-Repeat: put the following statements into a script test.bash: function showdate(){ return `date -j "+%a%Y-%b-%d"`; } showdate PROMPT_COMMAND=test_prompt_command.bash With the next prompt invocation the error message appears and the message about the core dump that is to be produced >Fix: :-( >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message