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

Well, yes, of course I could have written a shorter program like yours. In that case the program would totally miss the output when run by Nautilus without a terminal open, wouldn't it? Just try to run your shorter program without a terminal.
  • Comment on Re^2: Different meanings of $0 under the same operating system

Replies are listed 'Best First'.
Re^3: Different meanings of $0 under the same operating system
by assemble (Friar) on Nov 03, 2009 at 16:04 UTC
    #!/usr/bin/perl -w print "My name is $0...\n"; <STDIN>;
    ...
      That won't work either. Can't you good die-hard command-line folks think of lack of feedback in a gui? That's what UI::Dialog is meant for... Just using print won't put anything on the gui if you run the program without a terminal as I wrote.
        On Windows, running that will show a command prompt and wait for me to hit enter. I can't imagine a linux box not doing that...