bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "fc" builtin exits with unexpected status


From: Chet Ramey
Subject: Re: "fc" builtin exits with unexpected status
Date: Tue, 17 Nov 2015 09:35:28 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 11/15/15 10:55 PM, Chris Marusich wrote:
> Hi,
> 
> I like to set up my PS1 to show the exit status of the last command I
> ran. I've noticed that this doesn't seem to work as expected when I
> use the "fc" builtin.  When I do the following, the final exit status
> appears to be reported as "1", even though true always exits with
> status 0.

Thanks for the report.  This will be fixed in the next release of bash.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]