bug-texinfo
[Top][All Lists]
Advanced

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

Re: [bug #42067] help2man (1.45.1): can't get `--help' info from ../util


From: Gavin Smith
Subject: Re: [bug #42067] help2man (1.45.1): can't get `--help' info from ../util/texi2dvi
Date: Sun, 13 Apr 2014 14:29:27 +0100

On Sun, Apr 13, 2014 at 6:51 AM, Richard PALO <address@hidden> wrote:
> Just to communicate where the real problem lies as reported by pkgsrc users
> (Mr Clausen and Mr Zingelman), the following snippet is not supported by
> certain shells, namely pdksh and older bash (prior to 2.04) and older ksh.
>

> If I quote, for a simple example, the bash manpage:
>
> ((expression))
>           The expression is  evaluated  according  to  the  rules
>           described  below  under  ARITHMETIC EVALUATION.  If the
>           value of the expression is non-zero, the return  status
>           is  0;  otherwise  the  return  status  is  1.  This is
>           exactly equivalent to let "expression".
>
>

> One solution is to insert a space as follows:
> @@ -1103,7 +1103,7 @@
>    # bibtex would never be run.
>    if test -r "$in_noext.aux"
>       && test -r "$in_noext.log"
> -     && ((grep 'Warning:.*Citation.*undefined' "$in_noext.log"
> +     && ( (grep 'Warning:.*Citation.*undefined' "$in_noext.log"
>            || grep '.*Undefined citation' "$in_noext.log"
>            || grep 'No file .*.bbl.' "$in_noext.log")
>            || (grep 'No .aux file' "$in_noext.log"
>
>
> In the end, this could/should be fixed in a portable fashion here in the
> upstream source in order to allow older (more strict) shells.
>

Thanks Richard, I have applied this.



reply via email to

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