Subject: -current /bin/sh possible regression
To: NetBSD current <current-users@NetBSD.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: current-users
Date: 07/09/2006 00:39:26
Hi,
I just noticed that -current /bin/sh does not give the expected
results (note the missing dots ...) with the following piece of code:
njoly@cixy [tmp/sh]> cat ./foo.sh
#! /bin/sh
echocheck()
{
echo -n "Checking for $@ ... "
}
echocheck "foo bar"
echo "ok"
echocheck "foo_bar"
echo "ok"
njoly@cixy [tmp/sh]> /bin/sh ./foo.sh
Checking for foo barok
Checking for foo_barok
Results are diffrent with ksh and zsh:
njoly@cixy [tmp/sh]> /bin/ksh ./foo.sh
Checking for foo bar ... ok
Checking for foo_bar ... ok
njoly@cixy [tmp/sh]> /local/bin/zsh ./foo.sh
Checking for foo bar ... ok
Checking for foo_bar ... ok
I'm pretty sure it worked previously, but i can't remember when.
--
Nicolas Joly
Biological Software and Databanks.
Institut Pasteur, Paris.