zsh-bin icon indicating copy to clipboard operation
zsh-bin copied to clipboard

why do not patch bin in macos

Open rmGFW opened this issue 1 year ago • 5 comments

i found it was disable patch bin in macos , i dont know why disable it

if [ "$ZSH_BIN_KERNEL" = darwin ]; then
  sed_i 's/@ZSH_BIN_DO_PATCH_BIN@/false/g' share/zsh/5.8/scripts/relocate
else

rmGFW avatar Jul 07 '24 07:07 rmGFW

Probably doesn't work there.

romkatv avatar Jul 07 '24 14:07 romkatv

Probably doesn't work there.

that's right , i tried patch Mach-O 64-bit executable, it will crash after patched . but i don't known why it crash .

rmGFW avatar Jul 08 '24 05:07 rmGFW

Probably something to do with security.

romkatv avatar Jul 08 '24 07:07 romkatv

Probably something to do with security.

i want to find how to fix this ,but i even dont known what's the name of this mechanic.

btw, if we not do patching in macos , that is zsh-bin binary is not relocate in macos , so the relocate feature is only working in linux , right?

rmGFW avatar Jul 08 '24 09:07 rmGFW

btw, if we not do patching in macos , that is zsh-bin binary is not relocate in macos , so the relocate feature is only working in linux , right?

Yes, I think so.

macOS comes with zsh 5.9 by default. What are you trying to achieve by installing zsh 5.8 via zsh-bin?

romkatv avatar Jul 08 '24 10:07 romkatv