@ori @thedaemon @256k @neauoire It's not a shell script, but it uses the same data paradigm of splitting text on newlines and spaces without any way to quote the separators. rc is indeed better at variables than sh, but it still has $ifs. I remember having to muck with temporary ifs modifications a lot for some of my scripts. Couldn't just set it for the whole script of course, because then other scripts I was calling would misbehave. I also remember other tools messing up when the path had unexpected characters, but it's been a while, so maybe they have been fixed. Oh, wait, no, that one was about passing unsanitized input to sed.
These frustrations were the reason I created a linear TSV parsing library in KenC. If/when I give 9front another try, I'll probably get back to that and writing quote/unquote utilities for the various DSLs involved in coreutils. (certainly rc, sed, and grep)
=> More informations about this toot | View the thread | More toots from csepp@merveilles.town
=> View ori@hj.9fs.net profile | View thedaemon@hj.9fs.net profile | View 256k@merveilles.town profile | View neauoire@merveilles.town profile
text/gemini
This content has been proxied by September (3851b).