Subject: sh problem
To: None <current-users@netbsd.org>
From: Patrick Welche,SCC,ext.35710, <prlw1@newn.cam.ac.uk>
List: current-users
Date: 01/06/2000 20:02:47
sh seems to be broken:

quartz% ksh
$ echo "$PGDATA" | grep '^/'
/usr/local/pgsql/data
$ echo $?
0
$ ! echo "$PGDATA" | grep '^/'
/usr/local/pgsql/data
$ echo $?
1
$ quartz% sh
$ echo "$PGDATA" | grep '^/'
/usr/local/pgsql/data
$ echo $?
0
$ ! echo "$PGDATA" | grep '^/'
/usr/local/pgsql/data
$ echo $?
0

That last 0 should be a 1 as per ksh shouldn't it?

This is NetBSD/i386-current of 4 Jan (or yesterday not sure).

Cheers,

Patrick