aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-20 18:10:08 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-20 18:10:08 -0800
commit2a91a7640cfb8a6caadfd096d6e6975cdc56aacb (patch)
tree6c02ef9c0dca12202445a71de9b9ca950c2d409f /exec.cpp
parent6b352500992692c0dcd978fb6e7569bfc93ddb4f (diff)
Make echo recognize -ne
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.cpp b/exec.cpp
index cdae00af..13652b5e 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -1469,13 +1469,13 @@ static int exec_subshell_internal(const wcstring &cmd, wcstring_list_t *lst)
{
// Look for the next separator
const char *stop = (const char *)memchr(cursor, sep, end - cursor);
- bool hit_separator = (stop != NULL);
+ const bool hit_separator = (stop != NULL);
if (! hit_separator)
{
// If it's not found, just use the end
stop = end;
}
- // Stop now points at the first character we do not want to copy)
+ // Stop now points at the first character we do not want to copy
const wcstring wc = str2wcstring(cursor, stop - cursor);
lst->push_back(wc);