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
make it look like kernel driver
[unix-history]
/
usr
/
src
/
bin
/
csh
/
dir.c
diff --git
a/usr/src/bin/csh/dir.c
b/usr/src/bin/csh/dir.c
index
6508149
..
6f92796
100644
(file)
--- a/
usr/src/bin/csh/dir.c
+++ b/
usr/src/bin/csh/dir.c
@@
-5,7
+5,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char *sccsid = "@(#)dir.c 5.
2
(Berkeley) %G%";
+static char *sccsid = "@(#)dir.c 5.
3
(Berkeley) %G%";
#endif
#include "sh.h"
#endif
#include "sh.h"
@@
-162,8
+162,8
@@
dfollow(cp)
}
}
}
}
}
}
- if ((dp = value(cp))[0] &&
-
(dp[0] == '/' || dp[0] == '.' && chdir(dp) >= 0)
) {
+ dp = value(cp);
+
if ((dp[0] == '/' || dp[0] == '.') && chdir(dp) >= 0
) {
xfree(cp);
cp = savestr(dp);
printd = 1;
xfree(cp);
cp = savestr(dp);
printd = 1;