2 ms·
> He said that millions of people probably use Bash without realizing it (because every Apple device runs Bash) iOS devices do not ship with bash.
by saagarjha 7y ago
> He said that millions of people probably use Bash without realizing it (because every Apple device runs Bash)
iOS devices do not ship with bash.
- chetramey 7y agoAt least the last time I looked at a jailbroken iOS device, it opened a terminal running bash-3.2 (the same version as on macOS). It's there, you just can't get to it.
- saagarjha 7y agoMost "packaged" jailbreaks drop a shell binary into /bin, or outright install packages for things such as Bash and the GNU Core Utilities; iOS does not actually ship with these. (If it did, I would assume that the GPL would require that Apple provided source code for it here: https://opensource.apple.com/release/ios-1141.html https://opensource.apple.com/release/ios-1141.html .)
- chetramey 7y agoI don't buy it. First, why would a Linux-based jailbreak install a binary for bash-3.2, when that version is going on 13 years old? Second, there's nothing that requires Apple to make the GPL sources available in both MacOS and iOS. Doing it once is sufficient. I'm sticking with what I've seen and been told: the guts of MacOS are there, just hidden.
- saagarjha 7y ago> First, why would a Linux-based jailbreak install a binary for bash-3.2, when that version is going on 13 years old? Because nobody updated coreutils on iOS for years, AFAIK. FWIW, the unc0ver jailbreak installs bash 5.0.3. > Second, there's nothing that requires Apple to make the GPL sources available in both MacOS and iOS. Doing it once is sufficient. Why does the GPL not require that they release their modifications if they distribute them? > I'm sticking with what I've seen and been told: the guts of MacOS are there, just hidden. $ find -E /Volumes/PeaceG16G102.D321OS -regex "(ba)?sh" $ ls /Volumes/PeaceG16G102.D321OS/bin df ps (That's the iOS 12.4.1 restore image for iPhone XS, if you're wondering.)