bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Special parameter $_ expands to a relative path


From: Angel Tsankov
Subject: Re: Special parameter $_ expands to a relative path
Date: Thu, 01 Sep 2011 16:38:29 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110830 Thunderbird/3.1.13

On 09/01/11 15:11, Greg Wooledge wrote:
On Thu, Sep 01, 2011 at 01:15:34AM -0800, Roger wrote:
[...]
The original poster may be interested in this page:

http://mywiki.wooledge.org/BashFAQ/028 -- How do I determine the location
of my script?  I want to read some config files from the same place.

That sounds like what he was hoping to accomplish.  He is going to be
disappointed, unless he's willing to accept one of the "90% solutions"
that are so incredibly popular.


Thanks for your answer!

As I'm not inclined to accept less than 100% of anything, I'm indeed very unhappy with this situation. It turns out that a universal solution is to design shell scripts so that they never need to know their location. This, in turn, may lead to design restrictions in other parts of a system based at least partly on shell scripts. And this, at times, is certainly a pain in the ass.


Regards,
Angel Tsankov




reply via email to

[Prev in Thread] Current Thread [Next in Thread]