Hi, On Fri, Sep 06, 2024 at 07:32:41AM -0400, Greg Wooledge wrote: > On Fri, Sep 06, 2024 at 11:10:16 +0000, Andy Smith wrote: > > Is there a reason not to just make these scripts cd to their own > > directory so the caller doesn't have to care? > > > > cd "$(dirname "$0")" > > https://mywiki.wooledge.org/BashFAQ/028
Ah, got it - $0 is not reliably the location of the running script. Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting