On Sunday 24 May 2009 15:27:50 Siegfried Gevatter wrote:
> Well, that example isn't the same as in bubbros, there we don't care
> about any variable's value being changed. 

It is just a demonstration of behaviour, the variable is changed because the 
sourced script does "receive" an argument. The fact that the demonstration 
involved a variable is completely irrelevant.

> It would rather be like this 
> one:
>
> $ cat test
> ./test1 $*
> $ cat test1
> echo $1

Which is broken because the printed $1 in test1 is the one test received (in 
case of non-dash shells) or the one set by dash when sourcing the script.

Regards,
-- 
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