From 95635a5982ec8ab234d925a4bb5025328a706fa3 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 26 May 2016 16:11:26 +0200 Subject: Remove $version It's too generic a name - which both does not communicate what it is and prevents someone else from using it. --- src/env.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/env.cpp b/src/env.cpp index 433b45f9..381b4588 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -286,7 +286,7 @@ static bool variable_is_colon_delimited_array(const wcstring &str) { void env_init(const struct config_paths_t *paths /* or NULL */) { // env_read_only variables can not be altered directly by the user. const wchar_t *const ro_keys[] = { - L"status", L"history", L"version", L"_", L"LINES", L"COLUMNS", L"PWD", + L"status", L"history", L"_", L"LINES", L"COLUMNS", L"PWD", // L"SHLVL", // will be inserted a bit lower down L"FISH_VERSION", }; @@ -354,9 +354,8 @@ void env_init(const struct config_paths_t *paths /* or NULL */) { } } - // Set up the version variables. + // Set up the version variable. wcstring version = str2wcstring(get_fish_version()); - env_set(L"version", version.c_str(), ENV_GLOBAL); env_set(L"FISH_VERSION", version.c_str(), ENV_GLOBAL); // Set up SHLVL variable. -- cgit v1.2.3