21 Nov
2012
21 Nov
'12
7:45 p.m.
On Wed, Nov 21, 2012 at 6:35 PM, Alan BRASLAU wrote:
3 Sourcing the script (not calling it as an executable) as "source script" or ". script" will return as $0 "/bin/bash" or "/usr/local/bin/bash" or "/bin/sh" or whatever shell is in use. This is your problem, I believe.
True. But Peter's idea is also not that bad. The drawback is that the distribution cannot be moved to a different directory then, but one could also have combination of both approaches somehow. Mojca