bug-bash
[Top][All Lists]
Advanced

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

Re: Feature request - script directory


From: Davide Brini
Subject: Re: Feature request - script directory
Date: Wed, 17 Sep 2014 15:47:44 +0200

On Tue, 16 Sep 2014 21:02:54 +0200, Łukasz Wieczorek
<wieczorek1990@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.



reply via email to

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