[Top][All Lists]

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

Re: [Nmh-workers] m_getfld() bug fix

From: Ralph Corderoy
Subject: Re: [Nmh-workers] m_getfld() bug fix
Date: Sun, 08 Dec 2013 10:29:52 +0000

Hi David,

> Ah, but it busts on Solaris:
>   awk: syntax error near line 1
>   awk: bailing out near line 1
> At least we know where the problem is.

Oh, line 1.  `awk --posix' here suggests length would like parenthesis.

    awk '!length() && e {next} {e = !length()} 1'

I wonder if `diff -b' is the wrong approach as it's applying the -b to
the whole file.  Would using sed to canonicalise that one line to no
spaces at start or end, and only one space in between be better?

Cheers, Ralph.

reply via email to

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