nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] I'm confused


From: norm
Subject: Re: [Nmh-workers] I'm confused
Date: Fri, 14 Sep 2012 13:15:44 -0700

Ken Hornstein <address@hidden> writes:
>>what's happening is
>>
>>    execve("/bin/sh",
>>        ["sh", "-c", "$SHELL -c \" cd /tmp;ls `seq 1 5`\""], ...) = 0
>
>Yeah, I was actually thinking to myself when looking at that code, "Hey,
>doesn't our popen() use sh -c?"
>
>I look at this and I can't help thinking that's the wrong answer; getting
>shell quoting is hard enough, but having to double-quote it?  That just
>seems like a mistake to me.  Also, depending on "ls"output to get a list
>of files seems like that's fraught with problems as well.  I suspect that's
>why Norm is getting a blank Nmh-Attachment header; there's a blank line
>being output somewhere by his version of ls.

My ls is the /bin/ls that comes with Red Hat Enterprise Linux 6.3. But sure,
whatnow has no way knowing what the 'ls' in the user's $PATH might do.

I don't know that whatnow's attach ever gave me a blank Nmh-Attachment header.
What you are probably referring to was my request that send silently remove any
such headers. I asked for that so that users could put them in their templates 
to
be filled in, or left blank at composition time.

    Norman Shapiro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]