mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
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.
This commit is contained in:
parent
20899f2df9
commit
d63db59ade
1 changed files with 1 additions and 10 deletions
11
exec.cpp
11
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;
|
||||
|
|
Loading…
Reference in a new issue