From 38f06d505ca478db535a26515dbfb515957f93ad Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 27 May 2012 14:29:24 +0200 Subject: [PATCH] Better detection of environmental variables in mxsh. --- utils/mxsh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mxsh.cpp b/utils/mxsh.cpp index 8e36d45e..513163a6 100644 --- a/utils/mxsh.cpp +++ b/utils/mxsh.cpp @@ -272,7 +272,7 @@ void command() if ( command[0] == '\0' ) { return; } - if ( strchr(command, '=') ) + if ( strchr(command, '=') && !strchr(command, ' ') && !strchr(command, '\t') ) { if ( putenv(strdup(command)) ) { perror("putenv"); status = 1; return; } status = 0;