[Github-comments] [geany/geany] How to run sh script with full path? (#2611)

Botspot notifications at xxxxx
Tue Oct 6 14:05:43 UTC 2020


I've developed hundreds of bash scripts with Geany, and have always been able to click Execute and they run properly.  
Many of these scripts make use of the $0 variable - that is - the path the script was run with.  
So if I'm editing `/home/pi/myfolder/myscript.sh`, then $0 is `/home/pi/myfolder/myscript.sh`.  

Well just yesterday that behavior changed. Now $0 is `./myscript.sh` - not with the full path anymore.  
Using Geany, I tried executing multiple scripts that worked fine the day before, but all of them failed now because the scripts were no longer being run from their full path.  

Running the scripts from a terminal, using their full paths, still works fine.

I don't remember changing any Geany settings, but is there a setting somewhere with which I can change its Execute behavior back to how it was?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2611
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201006/bd7e6c72/attachment.htm>


More information about the Github-comments mailing list