[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RCS 5.9.0 does not compile on Solaris
From: |
Jörn Clausen |
Subject: |
Re: RCS 5.9.0 does not compile on Solaris |
Date: |
Tue, 04 Jun 2013 17:13:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.28) Gecko/20120307 Lightning/1.0b2 Thunderbird/3.1.20 |
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 address@hidden
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld