Re: RCS 5.9.0 does not compile on Solaris

Jörn Clausen <[email protected]> Tue, 04 Jun 2013 17:13:40 +0200
Newsgroups gmane.comp.version-control.rcs.bugs
Message-ID <[email protected]>
On 04.06.13 16:43, Thien-Thi Nguyen wrote:
> Hmm, how about:
>
>   check=`grep -c 'CHECK_HV (".*")' "$in" || echo 0`

This assigns

0\n0

to $check. Both with /bin/sh and /bin/ksh (and /bin/bash).

> That should assign "0" to ‘check’ even if grep(1) fails.

But is this the correct logic? The command will fail always, both when 
the code should generate the include and when not.

Maybe it's really easier to execute the script with ksh?

-- 
  Jörn Clausen                             [email protected]
  Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
  Universität Bielefeld