From b0368fd85b18faa70717a1720c2e3448e193ea57 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 3 May 2018 12:49:21 +0200 Subject: [PATCH] Set $IFS in C++ This was done in share/config.fish, but leads to surprising results if that isn't read - e.g. because someone just built fish in the git directory to test it without installing. It's also not something that is any more or less complicated. For compatibility, keep it in config.fish as well for the time being. --- src/env.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/env.cpp b/src/env.cpp index af2f8e451..1bd267708 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -924,6 +924,9 @@ void env_init(const struct config_paths_t *paths /* or NULL */) { uid_t uid = getuid(); setup_user(uid == 0); + // Set up $IFS - this used to be in share/config.fish, but really breaks if it isn't done. + env_set_one(L"IFS", ENV_GLOBAL, L"\n \t"); + // Set up the version variable. wcstring version = str2wcstring(get_fish_version()); env_set_one(L"version", ENV_GLOBAL, version);