in reply to Current file name

There's no such concept as a "current file name". After the process has started, the file may have been deleted, copied, moved or modified. On top of that, the program executed may come from STDIN, or from the command line.

Replies are listed 'Best First'.
Re^2: Current file name
by akho (Hermit) on Jun 06, 2009 at 17:30 UTC
    Don't you get the same set of problems with cwd? I'd say you are overthinking things.
      Don't you get the same set of problems with cwd?
      No.