Hi,

[No reason not to CC the report]

On Saturday 23 May 2009 06:06:00 Siegfried Gevatter wrote:
> Hi,
>
> I want to ask you about bug
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530053 which you have
> automatically reported against bubbros because its launcher script
> uses «. /usr/games/bubbros $*».

No, I did not automatically report it; all the reports were manually filed.

>
> I wanted to ask you what's the problem with this, because as far as I
> can see it works fine with dash (and, in fact, the files containing
> that have a shabang with «/bin/sh» which on Ubuntu already dash).

This is actually an error because it assumes all /bin/sh's allow passing 
arguments to sourced scripts, while as a matter of fact only dash does that.

Example:
$ cat test
foo=foo
echo $foo
. ./test.i $foo
echo $foo

$ cat test.i
[ "$1" ] || foo=bar

$ bash test
foo
foo
$ dash test
foo
bar
$ ksh test
foo
foo
$ zsh test
foo
foo
$ mksh test
foo
foo
$ pdksh test
foo
foo
$ busybox sh test
foo
foo

Cheers,
-- 
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to