Subject: "date -X ; date" works in sh, but not in make
To: None <tech-userlevel@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-userlevel
Date: 03/28/1999 18:17:17
Hi,

I've found something I don't understand, maybe someone can help me. 
If I seperate two commands by ";" and the first fails (for whatever
reason), the second one is executed if this is in /bin/sh, but not in
make(1):

rfhpc8002# sh
# date -X ; date
date: illegal option -- X
usage: date [-nu] [-r seconds] [+format]
       date [[[[[cc]yy]mm]dd]hh]mm[.ss]
Sun Mar 28 18:14:44 MEST 1999			<- 2nd command executed
# 
# cat >/tmp/m
all:
        date -X ; date
^D
# make -f /tmp/m 
date -X ; date
date: illegal option -- X
usage: date [-nu] [-r seconds] [+format]
       date [[[[[cc]yy]mm]dd]hh]mm[.ss]
*** Error code 1				<- 2nd command not executed

Stop.
# 

What am I missing here?


 - Hubert

P.S.: this is on <5 days old -current on i386. 

-- 
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>