mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 03:13:37 +08: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
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 New Issue
Block a user