What is a good way to do general execs?
Dik T. Winter
dik at cwi.nl
Fri Jun 15 10:08:02 AEST 1990
In article <3459 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
> > Invocation.
> > If the first character of argument zero is -, commands are
> > read from $HOME/.profile, if such a file exists.
>
> I consider "login shell" basically short for "shell with the first
> character of argument zero a '-'" (which means that any shell fired up
> by "login" is a login shell, but so are shells fired up by e.g. "su"
> when run with the appropriate flag). I considered the more detailed
> explanation unnecessary and extraneous in this case....
It is indeed extraneous in the context; but I think your position is flawed.
Try:
PATH=$PATH:.
ln -s /bin/sh -sh
-sh
Now, when you consider this to be a login shell, it becomes another matter,
but I think that it is non-intuitive naming.
--
dik t. winter, cwi, amsterdam, nederland
dik at cwi.nl
More information about the Comp.unix.wizards
mailing list