Current macOS #Sonoma 14.6.1 ships with #Bash 3.2.57 (deprecated in favor of #Zsh), Python 3.9.6, Perl 5.34.1, #Ruby 2.6.10, and #Tcl 8.5.9, all of which issue deprecation warnings on startup.
Apple says future versions of macOS won’t include a number of open-source scripting languages. The impact of this change will vary depending on the audience, but it will affect more people than you might think.
As opposed to the greater evil of wrapping that one line in an even noisier and fork/exec/waitpid-happy #shell script? Just use #Perl for the whole shebang! (pun intended)
Salve J. Nilsen
in reply to Christian Rickert • • •good one! 😄
```
function realpath() {
/usr/bin/perl -MCwd=abs_path -E 'say abs_path(shift // die "realpath argument missing")' "$0"
}
```
Hope this ^ is a tiny improvement. Not much magic there, though! 😉
Christian Rickert
in reply to Salve J. Nilsen • • •Salve J. Nilsen
in reply to Christian Rickert • • •desktop/app/static/darwin/github.sh at development · desktop/desktop
GitHubChristian Rickert
in reply to Salve J. Nilsen • • •Mark Gardner
in reply to Salve J. Nilsen • • •I didn’t realize that was part of the official #GitHub Desktop package.
They’re gonna have an interesting time when #Apple makes good on its five-year-old deprecation of #Perl from #macOS: https://TidBITS.com/2019/06/25/apple-to-deprecate-scripting-languages-in-future-versions-of-macos/
#PHP and #Python 2.7 already got the axe.
Current macOS #Sonoma 14.6.1 ships with #Bash 3.2.57 (deprecated in favor of #Zsh), Python 3.9.6, Perl 5.34.1, #Ruby 2.6.10, and #Tcl 8.5.9, all of which issue deprecation warnings on startup.
Apple to Deprecate Scripting Languages in Future Versions of macOS - TidBITS
Curtis Wilcox (TidBITS Publishing Inc.)Christian Rickert
in reply to Mark Gardner • • •@mjgardner No worries - I didn't make the source very clear.
I agree that we're going to see interesting error messages after the update of #macOS. 🙃
Mark Gardner
in reply to Christian Rickert • • •Mark Gardner
Unknown parent • • •@XiozTzu This is a *bad* thing for anyone distributing #macOS software that depends on OS-provided scripting language packages.
Like #GitHub Desktop, which started this thread: https://chaos.social/@sjn/112979841801758447
Like company #IT departments.
And schools.
And anyone who doesn't understand why their computer isn't working like it used to because some script starts with `#!/usr/bin/…`
The world is bigger than your personal technical chops.
/ @sjn @christianrickert
Salve J. Nilsen
2024-08-17 22:59:34
Christian Rickert
in reply to Mark Gardner • • •@sjn
@mjgardner You made your (fair) point, please stay on topic.
@XiozTzu Apple is indeed forcing developers to upgrade their software. If they're still around.
Mark Gardner
in reply to Christian Rickert • • •@sjn @XiozTzu “Please stay on topic.”
You’re new here, aren’t you? 😉
Christian Rickert
in reply to Mark Gardner • • •@mjgardner @sjn @XiozTzu
Yes. And I hope this place doesn't turn into #reddit. 😂
Paul Evans
in reply to Christian Rickert • • •Christian Rickert
in reply to Paul Evans • • •fuzzix
in reply to Christian Rickert • • •Looks like Apple's libc still shells out to perl ...
https://github.com/Apple-FOSS-Mirror/Libc/blob/master/gen/wordexp.c#L192
Libc/gen/wordexp.c at master · Apple-FOSS-Mirror/Libc
GitHubChristian Rickert
in reply to fuzzix • • •@fuzzix Good catch! - It's not the only gem in the source: 💭
https://github.com/Apple-FOSS-Mirror/Libc/blob/2ca2ae74647714acfc18674c3114b1a5d3325d7d/gen/wordexp.c#L110
Libc/gen/wordexp.c at 2ca2ae74647714acfc18674c3114b1a5d3325d7d · Apple-FOSS-Mirror/Libc
GitHub