[PATCH] aiaiai-email-lda: use the References mail header

Artem Bityutskiy dedekind1 at gmail.com
Mon Dec 8 01:56:00 PST 2014


On Thu, 2014-12-04 at 22:39 +0100, Robert Jarzmik wrote:
> Artem Bityutskiy <dedekind1 at gmail.com> writes:
> 
> > On Thu, 2014-11-20 at 11:40 +0200, Artem Bityutskiy wrote:
> >> On Fri, 2014-11-07 at 21:49 +0100, Robert Jarzmik wrote:
> >> > Robert Jarzmik <robert.jarzmik at free.fr> writes:
> >> > 
> >> > > Artem Bityutskiy <dedekind1 at gmail.com> writes:
> >> > > Well, I tried, this doesn't work anymore. The mail reason I think is that for
> >> > > each sentence such as :
> >> > > to="$(formail -c -z -x "To:" < $mail)"
> >> > >                                 \-> here $mail is actually quoted I think.
> >> > Actually if I understand correctly the man page:
> >> > Command Substitution:
> >> >         If the substitution appears within double quotes, word splitting and
> >> >         pathname expansion are not performed on the results.
> >> > 
> >> > That would mean $mail doesn't need quoting.
> >> 
> >> The $(blah) construct calls the subshell. Think about it as calling
> >> another shell which runs 'blah'. The quotes around "$()" do not
> >> "penetrate" to the sub-shell.
> >
> > Of course $(blah) is optimized and it does not create another shell
> > process. But it works as if a separate shell process was executed. So
> > your outer quotes apply to the _result_ of "blah".
> 
> Ah so I still have to fix this documentation I suppose.

Well, not that I insist... I am just helping potential contributors to
get along with shell.

Artem.




More information about the aiaiai mailing list