nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] Inability to cat a Message Part.


From: Ralph Corderoy
Subject: Re: [Nmh-workers] Inability to cat a Message Part.
Date: Sun, 28 Apr 2013 18:48:14 +0100

Hi David,

> > > Though with mhstore -outfile - 2>/dev/null, that's not necessary.
> > 
> > True, though I dislike discarding the known unknowns so tend to do
> > more
> > 
> >     pick ... 2> >(sed '/^pick: no messages match specification$/d')
> > 
> > to explicitly remove the known knowns.  :-)
> 
> I just tripped over that in the test, good idea.

Ah, well in that case I should give the correct version;  sed above will
be putting out what was originally stderr on its stdout, which is pick's
stdout.  It's better with a `>&2'.

    $ ls -d / /known /unknown 2> >(sed '\#/known:#d' >&2) | sed 's/^/1:/'
    ls: cannot access /unknown: No such file or directory
    1:/
    $

Cheers, Ralph.



reply via email to

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