[Top][All Lists]

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

bash-4.0 regression: negative return values

From: Mike Frysinger
Subject: bash-4.0 regression: negative return values
Date: Mon, 23 Feb 2009 00:03:28 -0500
User-agent: KMail/1.11.0 (Linux/2.6.28; KDE/4.2.0; x86_64; ; )

previous versions of bash would happily accept negative values ( treated as a 
signed integer and masked with like 0xff), but it seems some changes related 
to option parsing has broken that

$ f(){ return -1; }; f
-bash: return: -1: invalid option
return: usage: return [n]

POSIX states that the return value is an "unsigned decimal integer":

but bash does not say that in the bash(1) man page ...

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

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