seorphates
Joined 12 years ago
Joined 12 years ago
lookback: vi, sh and unix have become your vim, bash and linux systems of today. Now, while they have forward compatibility, of sorts, vi and sh, the same cannot be said in reverse, as a rule. Modern bash folks have bent bourne shell syntax into foreign looking contortions where bourne shell syntax is a) performant and conformant, b)a lot simpler when simpler is better and c) is why bash maintains posix.
I agree, learn basic vim. And bash. But not really to program with. It's more of a burden than not for a million languages and formats.
One should not rely on these magics, the ones that alter runtime behaviors, without truly understanding what you're after and what you're writing. Or mostly understand. They're fine and good if you have narrow routines with a very strict focus - "I'm in, I'm out, bang."
The best switches available to the shell without a bunch of feature and package and library this or that bloat are exactly
-x
-n
That's all that you need to ensure that your scripting is what you need it to be. Introduce the magic after you've written the thing. When it's ready and it passes your tests then test it again.Every single utility and package on that system is at your fingertips. Demand accuracy. I do.
#!/usr/bin/env bash
bell=`tput bel`
tock='Blastoff!'
do_ring()
{
if [ "$1" ]; then # true
echo -n $bell; sleep 0.1
echo -n $bell; sleep 0.1
echo -n $bell; sleep 0.1
echo $tock
else
echo -n $bell; sleep 0.1
fi
}
i=3
while [ "$i" -ge "0" ];
do
if [ $i = 0 ]; then
sleep 0.5
echo ok
else
echo $i $bell
sleep 0.5
fi
i=`expr $i - 1`
done
do_ring $1 # do something different if arg
sleep 1
echo neat.
Semantic qualities aside there is something here that breaks with -e and if you're used to using -e by default you might be baffled and think shell sucks, for example."Quote liberally" - also ripe. Mind your aPostrophes and Quotes because they do things.
I like writing for me and what I need done, not what or how others might have me write or how others might think it should be done.
The shell is a base orchestration and interface tool for your os. If you think it's just that bad then just stick to your language of choice but please refrain from suggesting lazy habits make a better shell, they don't.
Fly your own kite. It's much more fun.
It's extraordinary to me how we so willingly accept policy that directly and negatively affects so, so many facets of society and economy.
You want to maintain all the effects of growth, profits and budgets of a drug war economy? If so then you're a fucking idiot.
To top poster: these two things are not the same. They are wholly different classes where at the very base level one cannot exist without the other, literally. One is a utility provisioning and the other an appliance, figuratively.
They most certainly do not have cause to demand access to swaths of comms no matter whose comms they're after and most assuredly when that access actually entails enabling access to all of the comms.
I posit there is no authority that should be able to demand this as a matter of the right to human existence. Law, order, society and government should not have ultimate authority on private communications no matter what the tech is capable of. We, as humans in a modern world, can speak and if desired do so in private. This is our right as individuals and if encryption helps us accomplish and enforce that right then so be it.
If they have probable cause then they need to beat feet or beat heads but either way they need to get to work. And by work I do not mean trying to impose a different reality than the one that we currently have - where math is fact, compute is cheap and source is open.
What's it going to be? 100 go free or six lines from everyone?
Unrestricted symmetrical broadband would be a more than adequate foothold for robust frameworks that could fulfill the aspirations of one voice among billions in a truly decentralized fashion as well as provide a true springboard for thoughts, ideas and actions.
I believe the only role government should have here is ensuring access to the pipes that are regulated as an unhindered, affordable utility whose content is regulated only by you.
I also believe there are no words worth censoring. Yes, even nazi fucks. Let them speak and their words will prosper or fail on their own merit. We can't treat symptoms or causes if we drive unwanted words into darkness where they can fester and puss.
For that latter part I've witnessed two mind-numbingly ugly siphoning of all assets to the tune of thousands and thousands of dollars a month until assets are gone and then they're forced out and into pretty sub-optimal situations and neither of these two examples started off anywhere near the edges of being poor but they certainly did die that way.
-- sorry, sorry, impetuous. I'm simply tired of the bandwidth apologists. Data caps are 100% theft of service.