Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11898
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: "fc" builtin exits with unexpected status |
| Date | 2015-11-17 09:35 -0500 |
| Message-ID | <mailman.72.1447770944.31583.bug-bash@gnu.org> (permalink) |
| References | <CAEKzfHmopF-5Nh6cSVGJa6rZ3_qONGYBuhh3mxYagNL2RkOBAQ@mail.gmail.com> |
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/
Back to gnu.bash.bug | Previous | Next | Find similar
Re: "fc" builtin exits with unexpected status Chet Ramey <chet.ramey@case.edu> - 2015-11-17 09:35 -0500
csiph-web