Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2001 08:08:13 -0700 (PDT)
From:      ulrich <ulrich@infopuls.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   gnu/31165: bash core dumps if a function called by PROMPT_COMMAND generates an error
Message-ID:  <200110091508.f99F8DP06881@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110091508.f99F8DP06881>