Hi Une,

Une bue wrote:
> in ruby what's the meaning of "$" before base ?
> a way to get it as global var ?

Yes, that's correct. So $0 is actually global variable named "0".

> quit frankly i was wrong i've believe the behaviour of shell scripts is
> different then, i've made a riny test in zsh (my prefered shell) :

Well, you were right and wrong. ;) If you run that script (or a ruby
script) from the directory where it lives at, you get just the filename
in $0, since the base path is '.'; but cd .. and run it, and then
you'll get a full path. Confusing? ;)

Regards,
Jordan