Add missing profile bits to env, #72.

This commit is contained in:
Roy Marples
2008-09-18 19:46:10 +00:00
parent 354fb96ee9
commit e368a4b4f8
2 changed files with 25 additions and 25 deletions

View File

@@ -138,10 +138,14 @@ RC_STRINGLIST *rc_config_load(const char *file)
TAILQ_FOREACH(line, list, entries) {
/* Get entry */
p = line->value;
if (! p)
continue;
if (strncmp(p, "export ", 7) == 0)
p += 7;
if (! (token = strsep(&p, "=")))
continue;
entry = xstrdup (token);
entry = xstrdup(token);
/* Preserve shell coloring */
if (*p == '$')
token = line->value;