3 ms·
Writing bash is fun the same way as doing cross words are fun. And I say that as someone who enjoys writing bash scripts. But you are right, posix shell are no
by wodenokoto 4y ago
Writing bash is fun the same way as doing cross words are fun. And I say that as someone who enjoys writing bash scripts.
But you are right, posix shell are not in the need of fixing. They need a complete overhaul.
- mananaysiempre 4y ago> Writing bash is fun the same way as doing cross words are fun. And I say that as someone who enjoys writing bash scripts. Most of the time people who say they think the Unix shell and tools are difficult haven’t bothered to learn them. But not all the time, and that small minority makes me distinctly uncomfortable, because I simply can’t understand how that can be. Given you say you’re part of that minority, can you try to explain or demonstrate the problem? Perhaps give me a problem I can try my hand at, if you have one that makes sense out of context? Because while I’ll admit there are plenty of tasks for which I’ve found shell scripting unsuitable, for those it does work on I’ve rarely found it difficult. (I feel like I also have to point out that “writing bash scripts”, especially writing them to last, is very much not what my original comment was about. What it was about is more like this thing I just typed at the terminal because I couldn’t be bothered to write a script: curl -fsSL "$URL" | pup -p 'a[href$=".pdf"]' attr{href} | sed "s,^,$URL," | aria2c -i - It doesn’t do things Properly™ and wouldn’t work with an arbitrary $URL, but I knew which one I meant, and it was certainly simpler and faster than digging up requests and beautifulsoup and whatnot.)