aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-07-13 18:56:19 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-08-21 20:57:23 -0700
commitd63db59adeb84251c3ab5fe1b13981e44571bf31 (patch)
tree2bec57042f281c1d38236ece4a135960cad0dc21 /exec.cpp
parent20899f2df9b6cd09c5b511c3c655b747e82a42f0 (diff)
Clean up the IFS handling in command substitution
Remove the useless ASCII test of the first byte of IFS. We don't split on the first character, we only use a non-empty IFS as a signal to split on newlines.
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/exec.cpp b/exec.cpp
index f2d168a9..dfd04231 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -1548,16 +1548,7 @@ static int exec_subshell_internal(const wcstring &cmd, wcstring_list_t *lst, boo
if (! ifs.missing_or_empty())
{
- if (ifs.at(0) < 128)
- {
- sep = '\n';//ifs[0];
- }
- else
- {
- sep = 0;
- debug(0, L"Warning - invalid command substitution separator '%lc'. Please change the first character of IFS", ifs[0]);
- }
-
+ sep = '\n';
}
is_subshell=1;