nmh-workers
[Top] [All Lists]

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

2012-05-30 14:48:00
valdis(_dot_)kletnieks(_at_)vt(_dot_)edu wrote:

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.  (I used to do that myself, way back when csh had ! history and sh
didn't until it became bash).

the request that started this thread was simply to be able to use
"less -force" instead of "less" as moreproc.  many more clever tricks
(pipelines, redirection) are the same in most shells, and users
(especially mh users!) are adaptable: they can either write their
scriptlet in sh syntax even if it's not their favorite, or create a
wrapper if it needs to be in scsh.

summary:  i think passing any moreproc entry that contains whitespace
to "/bin/sh -c '%s'", and documenting it as such, would be fine. 
processes aren't nearly as expensive as they used to be.

paul
p.s. incidentally, mh-profile.5 mentions $SHELL only in the context
of bbl, which no longer exists.
=---------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 67.6 degrees)

_______________________________________________
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>