From 886fc38d55b04bb43e69860004d22bd246825421 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 13 Aug 2017 16:15:12 -0700 Subject: [PATCH] fix typo introduced by an earlier revert --- src/builtin_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin_set.cpp b/src/builtin_set.cpp index a5f3aada7..81b66d65b 100644 --- a/src/builtin_set.cpp +++ b/src/builtin_set.cpp @@ -203,7 +203,7 @@ static int validate_cmd_opts(const wchar_t *cmd, set_cmd_opts_t &opts, //!OCLIN static int check_global_scope_exists(const wchar_t *cmd, set_cmd_opts_t &opts, const wchar_t *dest, io_streams_t &streams) { if (opts.universal) { - env_var_t global_dest = env_get(dest, ENV_GLOBAL); + env_var_t global_dest = env_get_string(dest, ENV_GLOBAL); if (!global_dest.missing() && shell_is_interactive()) { streams.err.append_format(BUILTIN_SET_UVAR_ERR, cmd, dest); }