nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Multi-homed postproc, v2

2015-03-12 18:05:18
Hi Bob,

with:  for some reason, bash seems to only save C-1
characters of output, where C is the number of columns in the
xterm in which I'm running the script.

No, I don't think bash does that.  Try

    s=`bash -c 'printf %0314d\\n 42'`
    echo $s

on a terminal that's less than 314 columns wide.  You should find bash
"saves" all the 00000s ending with 42.

More likely, the command you're trying to capture the output of, post?,
is altering what it outputs to the terminal width, as if with cut(1).

An exact example of what you're attempting would help.

Cheers, Ralph.

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