Feature request - script directory

2014-09-17 Thread Łukasz Wieczorek
I would like to propose a feature: a built-in/variable that returns/holds
information about current script directory.
This could help parsers to properly `source` files.
Also please look how many people visited this page:
http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in

-- 
Greetings
Łukasz Wieczorek


Re: Feature request - script directory

2014-09-17 Thread Davide Brini
On Tue, 16 Sep 2014 21:02:54 +0200, Łukasz Wieczorek
wieczorek1...@gmail.com wrote:

 I would like to propose a feature: a built-in/variable that returns/holds
 information about current script directory.
 This could help parsers to properly `source` files.
 Also please look how many people visited this page:
 http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in

See http://mywiki.wooledge.org/BashFAQ/028 (linked from that same page).

The script may not even exist anywhere, as bash may be reading commands
from standard input.

-- 
D.