[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug: return doesn't accept negative numbers
From: |
Linda Walsh |
Subject: |
bug: return doesn't accept negative numbers |
Date: |
Fri, 05 Aug 2011 16:41:10 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
I guess I don't use negative return codes that often in shell, but
I use them as exit codes reasonably often.
'return' barfs on "return -1"...
Since return is defined to take no options, and ONLY an integer,
as the return code, it shouldn't be hard to fix.
Seem to fail on any negative number, but 'exit status' is defined
as a short int -- not an unsigned value (i.e. -1 would return 255).
- bug: return doesn't accept negative numbers,
Linda Walsh <=