nmh-workers
[Top][All Lists]
Advanced

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

Re: [nmh-workers] 'dist' in "1 line noninteractive script"


From: Valdis Klētnieks
Subject: Re: [nmh-workers] 'dist' in "1 line noninteractive script"
Date: Thu, 25 Jul 2019 12:18:17 -0400

On Thu, 25 Jul 2019 11:09:38 -0500, address@hidden said:

> On Tue 7/23/19 21:44 -0400 Ken Hornstein wrote:
> >>   mhannotate=Resent mhaltmsg=~/Mail/sent/bar mhdist=1 send 
> >> ~/Mail/drafts/foo
> >
> >It wouldn't surprise me that the problem is that ~ in mhaltmsg.  Is that
> >actually being expanded?  If you run send with -debug, do you maybe
> >see a message saying "$mhaltmsg mismatch"?
>
> $ ( set -x ; x=~ true )
> + x=/a/rodmant
> + true
>
> So bash expands ~ before send sees it.

But that may not be true for something that invokes execve() rather than
system(), or a cronjob (which is what started this discussion).

Attachment: pgpn_ko8UzukS.pgp
Description: PGP signature


reply via email to

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