Should your patch make sure that paths supplied to source/. push the full
pathname into BASH_SOURCE? It only handles the name of a shell script and
leaves the pathname associated with a shell function alone.
Sorry it took me a while to reply. Should this be enough?
So your answer is "yes." Is there anything to be gained by leaving the
pathname to source/. unchanged and just storing the full pathname of the
script file argument?
I'm looking for input from people who write shell frameworks here. The ones
who were vocal about BASH_SOURCE_PATH, since these concepts seem related.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/