This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: nesting "source" scripts




Sorry, my linux bash does exactly the same thing you describe.  If you
must call scripts based on $0, you can't use "source" to do it.
Perhapst the "eval" builtin might help work around this?

> This looks like it is simply a bash bug rather than anything specific
> to cygwin but snce I encountered this using cygwin I will try to find
> the answer here first.
> 
> It looks like the full path name of bash scripts is not available when
> they are invoked with "source".  This makes it impossible to call
> other scripts in the same directory, no?

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com