[Top][All Lists]

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

Re: [Nmh-workers] First release candidate for 1.5 now available

From: David Levine
Subject: Re: [Nmh-workers] First release candidate for 1.5 now available
Date: Tue, 24 Apr 2012 11:59:52 -0400

Oliver wrote:

> I tried compiling and installing on Solaris. It all builds fine but I
> get the following message repeated a number of times:
> ./man/mh-chart-gen.sh: !: not found
> ! is not available in pure Bourne shell and should be avoided.
> There are several options, we could use:
>   echo $i | grep 'mh-chart.man' >/dev/null && continue
> or:
>   expr $i : .*/mh-chart.man >/dev/null && continue
> I think continue works in any reasonable /bin/sh.
> Or we could avoid any forks by using a case statement:
>   case $i in
>     */mh-chart.man) break;
>     *)
>      ...
>     ;;
>   esac

I'll change it to the case statement (without the break).

> The script then goes on to complain about the -E option to grep (only
> /usr/xpg4/bin/grep or egrep handle that on Solaris).
> I think the easiest solution here to the roll the grep -E into the awk:
> awk '/.SH SYNOPSIS/,/^(\.ad|typical usage:)/ { if ( $0 !~ /^(\.SH
> SYNOPSIS|\.na|\.ad|typical usage:)/ ) print }'

Thanks.  I'll change it to that.


reply via email to

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