Get the latest tech news
Abuse ZSH Parameter Expansion to Expand GNU-Style Arguments
GNU-Style Command Line Argument Expansion #!/bin/zsh setopt extendedglob typeset -a cli=( ${${${(z)${${(qqq)argv[@]}:-}/#(#m)\"-[^-]?*/${$...
This method offers exactly one benefit: the target platform I was working with for this project was mingw under Windows and, like WSL1, it had this very painful performance issue when a shell had to create a sub-shell -- basically, any time you$(run something) and that means "if your function returns anything except for an integer", it's going to have a serious cost to place that into a variable the convenient way. But the code that made up the solution was never given a proper place in my git server -- it was rarely accessible up north due to outages. Outside of that my job focus went from what was called Microsoft Skype for Business 2016 at the time to a job where I got to put my fingers in code in people's homes through a few IoT projects, doing a lightweight 3D tool in three.js (in React), some fun with federated identity with gulp XML(Azure AD B2C), and lately I've been writing code for the Buzzword "Generative AI."
Or read this on Hacker News