diff options
author | 2012-12-20 18:10:08 -0800 | |
---|---|---|
committer | 2012-12-20 18:10:08 -0800 | |
commit | 2a91a7640cfb8a6caadfd096d6e6975cdc56aacb (patch) | |
tree | 6c02ef9c0dca12202445a71de9b9ca950c2d409f /exec.cpp | |
parent | 6b352500992692c0dcd978fb6e7569bfc93ddb4f (diff) |
Make echo recognize -ne
Diffstat (limited to 'exec.cpp')
-rw-r--r-- | exec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |