Damus
Michael Sumner profile picture
Michael Sumner
@Michael Sumner
why is it only today I now understand that 1) bash functions can be *pasted* in to a session 2) they run with 'fun arg' and 3) are the same as C/R syntax with {} and ; for lines, or just newlines

fun() { local a="$1"; echo "$a"; }
fun abc
abc

I have a colleague who gave this talk once but I was distracted on some spatial code or whatever and I totally vagued on all of it. Now I need that Evi Nemeth wonderful book, those chapters on python and perl are fantastic ...
1
Jim Spath · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqfs28qg8er742hs64ae58jgwgdackq8e0h22an6uzgr3cm0zqjvyqseakmf (bookmarked for future enlightenment after more caffeine) Fascinating!