diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2011-06-22 21:25:48 +0800 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2011-06-26 22:06:37 +0800 |
commit | ccec9a99b7f370c2b4d4ae872d97385848fb1845 (patch) | |
tree | 8c9b5ee7f7b46ebfbdbee2212e97dacb41e7192d /utils | |
parent | Build: relax antlr timeout limit (diff) | |
download | libbash-ccec9a99b7f370c2b4d4ae872d97385848fb1845.tar.gz libbash-ccec9a99b7f370c2b4d4ae872d97385848fb1845.tar.bz2 libbash-ccec9a99b7f370c2b4d4ae872d97385848fb1845.zip |
Walker: make arithmetic expansion follow POSIX
POSIX requires signed long integer for arithmetic expansion. $? is
implemented in the interpreter class now because POSIX doesn't require
the type of $? to be long. It would cause conversion in many places if
we used long for $?.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/variable_printer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/variable_printer.cpp b/utils/variable_printer.cpp index a8a948f..d44dc35 100644 --- a/utils/variable_printer.cpp +++ b/utils/variable_printer.cpp @@ -33,7 +33,7 @@ static const std::vector<std::string> special_variables { - "IFS", "?", "*", "0", "-" + "IFS", "*", "0", "-" }; static std::string get_src_dir() |