mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-19 18:12:14 -09:00
ghidraRun (and launch.sh) both seg fault in some macOS bash installations via the bash expansions performed in in ghidraRun, launch.sh, and a few other scripts. This happens on my macports bash installation and has been reported in homebrew bash installations as well (https://github.com/orgs/Homebrew/discussions/6270) My specific bash that seg faults: GNU bash, version 5.3.9(1)-release (aarch64-apple-darwin24.6.0) We can avoid the expansion and use an alternate expansion method. Scripts were updated via: ```sh perl -pi -e 's~^(\w+)\s*=\s*"\$\{(\w+)%/\*\}"\s*$~$1="\$(cd "\$(dirname "\$$2")" && pwd)"~' `find Ghidra/RuntimeScripts/Linux/` ```