[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/13125] readelf exits 0 when DWARF information requested bu
From: |
jonstanley at gmail dot com |
Subject: |
[Bug binutils/13125] readelf exits 0 when DWARF information requested but none present |
Date: |
Wed, 24 Aug 2011 12:59:35 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13125
--- Comment #2 from Jon Stanley <jonstanley at gmail dot com> 2011-08-24
12:59:35 UTC ---
Why not? The program wasn't able to do what you asked it to do. By the same
token, let's have grep exit 0 so long as you used it properly, even if the
string searched for isn't found. Such behavior would wreak havoc on shell
scripts that depend on the exit code to determine success (success in that case
being defined as the string was found, success in this case being defined as
DWARF information was found).
It's not a gigantic deal in this case, since I can wrap readelf in a shell
script to make up for it's defectiveness. However, I'm still of the belief that
if a program is unable to do what you asked because of bad input, that's an
error :)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.