1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

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;