aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-22 21:25:48 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-06-26 22:06:37 +0800
commitccec9a99b7f370c2b4d4ae872d97385848fb1845 (patch)
tree8c9b5ee7f7b46ebfbdbee2212e97dacb41e7192d /utils
parentBuild: relax antlr timeout limit (diff)
downloadlibbash-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.cpp2
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()