Follow

By the way, target-dependent code in GNU ld is a shell script that emits C code and the core definitions for the data structures are C code extracted from comments.

The early 90s called and wants their "cleverness" back.

@GeoffWozniak summon the armies of the world, either it goes or we do

wtf 

@GeoffWozniak I'm slightly confused.. Why is the function static?

wtf 

@lbehm @GeoffWozniak why not, if it is only used in the generated file?

wtf 

@lbehm @GeoffWozniak because they needed to exercise every potential meaning of the `static` keyword in C? 🤷

@GeoffWozniak @alilly Is this monster brought to us by the same people who invented autotools?

@GeoffWozniak @alilly Looking at this, I'm wondering why it took until 2015 for LLD to come along.

@GeoffWozniak @alilly

To make things worse, they use backticks instead of $() for shell expansion.

@oblomov @GeoffWozniak @alilly I'm wondering when $() became a thing. I never really followed bash development. I only discovered it in the last couple of years.

@alilly @oblomov @GeoffWozniak if it has made it through a committee it must have been there forever...

@borup @alilly @GeoffWozniak

So, I did some digging, and apparently it predates POSIX _but_ it has not been there “forever”. The X/Open Portability Guide, version 2 (1987) mentions it as “a new form”

(PDF available from archive.opengroup.org/publicat )

I also found an AT&T System V manual from 1986 that does not mention the syntax, so I'm guessing around that time?

@oblomov @alilly @GeoffWozniak that is close to forever... I started using ksh on HPUX in '92... Funny that backticks were Old-school even then 🤣

@borup @alilly @GeoffWozniak
Of course, the new-fangled $() had been invented FIVE WHOLE YEARS earlier.

@GeoffWozniak I will take your post as an opportunity to show my code that I wrote in the 90's that was really clever in this exact way.

github.com/lokedhs/nobots/blob

Sign in to participate in the conversation
hackers.town

A bunch of technomancers in the fediverse. This arcology is for all who wash up upon it's digital shore.