Better detection of environmental variables in mxsh.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-05-27 14:29:24 +02:00
parent b7788610da
commit 38f06d505c
1 changed files with 1 additions and 1 deletions

View File

@ -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;