projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
always source ENV (posix, and correct anyway)
[unix-history]
/
usr
/
src
/
bin
/
sh
/
main.c
diff --git
a/usr/src/bin/sh/main.c
b/usr/src/bin/sh/main.c
index
2c331a9
..
58b4130
100644
(file)
--- a/
usr/src/bin/sh/main.c
+++ b/
usr/src/bin/sh/main.c
@@
-129,7
+129,7
@@
state1:
}
state2:
state = 3;
}
state2:
state = 3;
- if ((s
flag || minusc) && (s
hinit = lookupvar("ENV")) != NULL &&
+ if ((shinit = lookupvar("ENV")) != NULL &&
*shinit != '\0') {
state = 3;
read_profile(shinit);
*shinit != '\0') {
state = 3;
read_profile(shinit);