11
Votes
May 23, 2011 8:05 PM
28 comments
CLI fans like to claim that Bash should be used, over dedicated programming languages, for automating complex tasks because it is Turing Complete.
If Turing completeness qualifies a language for automation, then why not automate everything using SQL? It’s Turing complete, after all.


Comments
This TM is a fine example of TheGreatLinuxRedHerring™. Congratulations!
I think it might be worth addressing this TM directly, even though that never does any good. But at least I can say I tried.
I never said Turing completeness is the sole reason you should use for automation. Turing completeness simply proves that Bash can be used to solve any computational problem.
The reason you should use Bash to solve automation problems is because you already know Bash because you have been using it for years. You have POSIX shells on all your systems because it’s a requirement to be a POSIX-compatible OS. You have a bunch of command lines and you wish you wrap them in a script. You have books that describe how to do things in Linux using the command line. Basically you are the typical *nix sysadmin. Why bother spending years perfecting Python or Ruby or other “real” language skills when Bash does everything you need?
That’s what I mean when Bash is the lingua franca of system administration. I don’t know many sysadmins who know how “to program” but they all know how to write shell scripts. And that’s fine.
“I never said Turing completeness is the sole reason you should use for automation. Turing completeness simply proves that Bash can be used to solve any computational problem.”
An abacus can be used to solve “any” computational problem, too. Besides, why would you want to use bash for solving “computational” problem anyway?
> You have POSIX shells on all your systems because it’s a requirement to be a POSIX-compatible OS.
Are we talking about Linux now? Which Linux exactly is POSIX-compatible?
Also, want to try yourself in Really Complex Automation Problem (OK, let’s for a moment forget your fail with enumerating files)?
http://ubuntuforums.org/showthread.php?p=10471779
Haha! Awesome example. If only there was some way for the software to authenticate with the OS. Oh wait, there is, an API.
Oh, ah-ha. Just found this pearl of Linux 1337 h@xx0ry:
http://ideone.com/RJ9W0
result: success
prog.sh: line 7: syntax error: unexpected end of file
Awesome automation language, just awesome.
“An abacus can be used to solve “any” computational problem, too”
So can a slide rule, and yes that also includes subtracion and addition with the right set of steps.
“Turing completeness” is just proof that language can be solve any computational problem.
Not that you should a language, or that abacus or SQL aren’t Turing complete.
I don’t get what the hell you guys are obsessing over.
Hit and run?
Adam, when you grow, you’ll probably learn, than international standards (even ugly ones like POSIX) have rather strict definition of term “compatible”.
In most cases “compatibility” is defined by a set of tests. Like this http://www.itl.nist.gov/div897/ctg/posix_form.htm
Or this http://www.opengroup.org/testing/testsuites/posix.html
Can you provide ANY evidence that ANY Linux distro EVER passed any of these test suites?
Also, what about bash automation? Want to entertain us once more?
“I don’t get what the hell you guys are obsessing over.”
By all means, explain your obsession of making pitiful comebacks in this particular website first. Then we’ll talk about whatever you think we are obsessed with.
“So can a slide rule, and yes that also includes subtracion and addition with the right set of steps.”
The notion of “right tool for the job” doesn’t even come across Adam’s mind. Seriously, if he wants to use a slide ruler or bash for “computational” tasks or software rendering on a P-166 MMX for 3D modelling, I won’t stop him. Whatever he does is his own personal choice. But coming here arguing with everyone armed with nothing except his poor decisions in life? Well, that’s just plain stupid.
Adam_King “That’s what I mean when Bash is the lingua franca of system administration. I don’t know many sysadmins who know how “to program” but they all know how to write shell scripts.”
This is rich…
Lingua franca… First, depending of your source, WinServers runs from 20% to 60% of the web, (http://en.wikipedia.org/wiki/Usage_share_of_operating_systems#Servers). Not counting private servers running tools like SharePoint, or the ones running behind a single balance server running other OS (let it be Linux/Unix/*BSD). So lingua franca you say, I don’t think so.
Sysadmins may not need to program. But many like to have an script language to do other things and python is less cryptic that bash. quit praising Bash as the ultimate tool for the job. BTW I like
ZSH better. And no, ZSH is not like BASH. scripts are not 100% compatible.
I don’t consider Windoze to be a legal OS.
“I don’t consider Windoze to be a legal OS.”
Oh, really? Then why not take that to your local congressman, then? It’s not like, you know, any one of us here cares about what you consider “legal” or what you don’t anyway. We just use whatever gets the job done.
Meh, Windoze is a crappy option anyway.
AdamQueef:
ACHIEVEMENT UNLOCKED
-200G – Stupid beyond belief
Seriously, you’ve shown on many occasions that you know nothing about Linux, not to say about Windows. And still you somehow “compare” OSes you know absolutely zero knowledge about.
Are you going to support your words with a bit of evidence? If not – just acknowledge that. Start from Eunux’s POSIX compatibility.
Also, what about last 5 messages from gmail using imap?
“And still you somehow “compare” OSes you know absolutely zero knowledge about.”
As long as you keeping bluffing about what you know and name-dropping things you don’t understand long and hard enough, you, too, can become an expert of everything.
“Seriously, you’ve shown on many occasions that you know nothing about Linux, not to say about Windows. And still you somehow “compare” OSes you know absolutely zero knowledge about.”
You keep thinking that. I know Windoze sucks because I’ve had the pain of using it. And besides, it’s proprietary closed source garbage.
“And besides, it’s proprietary closed source garbage.”
Like you would know what to do with the source even if it got slammed right in your face?
Adam_King “I know Windoze sucks because I’ve had the pain of using it. And besides, it’s proprietary closed source garbage.”
Let’s keep aside the 'closed source garbage’. When was the last time you used 'Windoze’ and what did you try to do. I mean serious stuff (whatever you think that is).
Everyone else on my family is not tech savvy. Can’t even fully tell the difference between a [web]page and a PDF (that’s no joke) and they can what they need on Window, well 99% percent of the time.
Adam King uses Windows on a daily basis and often visits many of the sites he trolls using Internet Explorer.
Kerberos from PieStar caught him, so have I several times. I think he claimed that it was he was using his sister’s computer.
...probably because his Linux machine was down after the latest Ubuntu update. Right Adam?
When he got caught out before he claimed he was using his mother’s computer. However, this bit about having been caught out on several other occasions? hmmmmm… I’m guessing it was his own computer he was using if that is the case.
More proof that I occasionally use Windoze. Although I think you are BSing about the IE part, I would never touch that piece of garbage. If I am forced to use Windoze for any inconvenient reason I try to shield myself from Mafia$oft with as much FOSS software as possible.
Adam_King: “If I am forced to use Windoze for any inconvenient reason I try to shield myself from Mafia$oft with as much FOSS software as possible.”
That sounds like carrying all tons of shields over you shoulders while sitting bare-butt on a grenade. Way to go.
Remember, FF is JUST a browser.
No worries. One day we will be able to get rid society monstrosity that is Mafia$oft software. This much I know.
@Adam_King, I leave you with a comic by another loon on that subject. http://www.freesoftwaremagazine.com/columns/bizarre_cathedral_93
AdamKingIsTuringComplete™
You must be signed in to leave comments.