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:
parent
b7788610da
commit
38f06d505c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue