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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils