Hacker News new | ask | show | jobs
by luckman212 63 days ago
It seems to only affect Bash 5.3.20 (Homebrew) - very odd:

    % /bin/bash --version
    GNU bash, version 3.2.57(1)-release (arm64-apple-darwin26)
    
    % /opt/homebrew/bin/bash --version
    GNU bash, version 5.3.20(1)-release (aarch64-apple-darwin27.0.0)
    
    % zsh -c '/sbin/ifconfig en0 | grep ether'
    ether d0:11:e5:1a:27:7a
    
    % /bin/bash -c '/sbin/ifconfig en0 | grep ether'
    ether d0:11:e5:1a:27:7a
    
    % /opt/homebrew/bin/bash -c '/sbin/ifconfig en0 | grep ether'
    ether 02:00:00:00:00:00
2 comments

Interestingly I can also reproduce it with Bash 5.3.15 from nix-darwin.

I wonder if this is about notarization or something.

Update: I think it's about code signature and how the API responds - which also corresponds to root and system binaries not seeing the issue.
it works fine in system bash for me
Yes it works in my system bash too (see above) - seems to be some sort of obscure Bash bug...