[Top][All Lists]

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

Re: [PATCH 1/1] Exit status of fc -e is the wrong way around

From: Chet Ramey
Subject: Re: [PATCH 1/1] Exit status of fc -e is the wrong way around
Date: Thu, 30 Jun 2016 15:19:34 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

On 6/30/16 7:02 AM, Ingo Karkat wrote:

> Bash Version: 4.3
> Patch Level: 46
> Release Status: release
> Also seen in prior versions, at least down to 4.2.46(1)-release
> Description:
> I'm trying to edit and recall a previous command with Bash's built-in "fc -e 
> vi" command, but somehow the exit status always indicates failure (1) on 
> successful edit, even if that editing is a no-op. The recalled command itself 
> executes just fine, just $? is wrong.
> Originally reported (and more background) here: 
> http://unix.stackexchange.com/questions/292847/exit-status-of-fc-e-is-the-wrong-way-around

Thanks for the report.  This was fixed back in November, 2015:


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

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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