Skip to main content


#GitHub #Desktop startup script - casting #Perl magic as the lesser evil. 😈
This entry was edited (3 months ago)
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! 😉

This entry was edited (3 months ago)
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.

This entry was edited (3 months ago)
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. 🙃

in reply to Christian Rickert

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)
Unknown parent

Mark Gardner

@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

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.