Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!metro!wolfen!bhpcpd.kembla.oz.au!bernd From: bernd@bhpcpd.kembla.oz.au (Bernd Wechner) Newsgroups: comp.sys.hp Subject: Problem with /bin/sh in HP-UX 5.11, has it been fixed? Message-ID: <1990Aug24.174549.7785@bhpcpd.kembla.oz.au> Date: 24 Aug 90 17:45:49 GMT Lines: 31 There is a known bug in our shell which causes problems with Cnews shell scripts. It incorrectly interprets code like this: VAR="" case "$VAR" in "") echo EMPTY;; *) echo FULL;; esac echoing FULL rather than EMPTY. We are running HP-UX 5.11 on an HP9000 series 500. uname -a yields "HP-UX bhpcpd 05.11 B 9030X 2304A00202" Has this bug been fixed? If so, what version would I need? As an aside, the following works fine (echoing EMPTY): VAR="" case $VAR in "") echo EMPTY;; *) echo FULL;; esac So, this is how I work around it for the time being. Thanks. -- Bernd Wechner, Research Officer (bernd@bhpcpd.kembla.oz.au) BHP Coated Products Division, Research and Technology Centre Port Kembla, New South Wales, Australia.