in reply to Different meanings of $0 under the same operating system

they are all practically the same, in the format PATH/PROGRAM

in (2) bash need ./ to look in the directory and in (3) nautilus is running on /

you can always get only the name by using something like:
@name = split '/', $0; $name = pop @name; print "my name is $name \n";

Replies are listed 'Best First'.
Re^2: Different meanings of $0 under the same operating system
by FloydATC (Deacon) on Nov 06, 2009 at 17:08 UTC
    ...except for some primitive operating systems out there that use other characters than '/' to separate path elements.

    -- Time flies when you don't know what you're doing