Re: shell: full path to currently executed script



On 2006-05-18, Angel Tsankov wrote:
How can I obtain the full path to the currently executed script?

Why? There is generally no good reason to do that.

However, it is usally in $0.

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
.



Relevant Pages

  • Re: shell: full path to currently executed script
    ... On 2006-05-18, Angel Tsankov wrote: ... There is generally no good reason to do that. ... echo 'echo "$0"'> a ... Shell Scripting Recipes: ...
    (comp.os.linux.misc)
  • Re: A Request for Help
    ... For the same reason one might write about a hypothetical thin ... Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) ...
    (rec.arts.mystery)
  • Re: The Girl who Kicked the Hornets Nest
    ... But but but wouldn't Amazon just hack into your Kindle and erase it? ... The fact that they can is one reason I would never buy a Kindle. ... Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) ...
    (rec.arts.mystery)
  • Re: How to rearrange text fields in sed?
    ... for the same reason: legibility. ... There may be a reason for using more idiomatic syntax in an ... because it may execute faster. ... Shell Scripting Recipes: | My code in this post, if any, ...
    (comp.unix.questions)
  • Re: Thanks and new sed question.
    ... > the *.php files. ... Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress ...
    (comp.unix.shell)