On 2012-05-29 10:36 PM, Tethys wrote:
> [email protected] 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
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers