nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] More than one parameters in .mh_profile

2012-05-29 21:19:57
On 2012-05-29 10:36 PM, Tethys wrote:
valdis(_dot_)kletnieks(_at_)vt(_dot_)edu writes:

No `#'?  How about just always send to the user's shell from the
password entry with a -c, as distinct from /bin/sh.
The problem is that some people (at least in the Elder TImes) would have
their login shell set to /bin/csh but they'd want their scripty things
done in /bin/sh.
In which case, couldn't they just do "sh -c whatever" as the thing that
would get passed to their login shell (i.e., csh)? It's a bit clumsy,
but it should work for the few people that are in that situation.

for that we have getenv('SHELL'), which is far more closely related to
the user's preferred command language than either their login shell or
the posix standard are going to be.


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>