This is a kludge. Unless I make a link from sh to - (which would leave a file

called `-' lying around on the users system forever) login shells will fail.
Just special-case the handling of `-' for now until/unless I find a more
palatable solution.
This commit is contained in:
Jordan K. Hubbard 1994-06-24 14:32:36 +00:00
parent cf3820b72a
commit a47d4a467d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1770

View File

@ -52,6 +52,8 @@ int main(int argc, char **argv)
slash = strrchr(argv[0], '/');
basename = slash? slash+1 : argv[0];
if (!strcmp(argv[0], "-"))
basename="sh";
for(ep=entry_points; ep->name != NULL; ep++)
if(!strcmp(basename, ep->name)) break;