- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Frist!
Admin
Well, you bash an if and an else together, and you get ... fusion!
Seemples!
Admin
Unless there's code we're not seeing, it does not execute the same command "regardless" of the contents of /etc/issue --- it apparently has to contain one of a set of expected strings.
Admin
The author obviously doesn't know how to use
case
, despite it having been in Bourne shells since Linus was a lad…Admin
....well, that was an unexpected EOF. I was all ready to hear what else was horrific when it turned out it was about nothing but one test in old shell script. /etc/issue USED to be the standard, /etc/system-release or /etc/os-release is new, so it makes sense that a 20-year-old installer doesn't really keep up on current packaging conventions.
uname is NOT an option, unless you keep a continually updated table of systems. Have you even tried to compare its output across releases? Truly TRWTF.
Admin
Having installed Coldfusion on Ubuntu before, I am not even remotely surprised at the quality of code. I spent about an hour wrestling with command line arguments before it finally installed. This was about a decade ago - apparently nothing has changed.
Admin
I am genuinely surprised that ColdFusion is still developed. That seems like TRWTF. For the good of the web, Adobe needs to let some of these old products die.
Admin
Like I've been saying on the forums for years - ColdFusion is at the bottom of the food chain. Even below PHP developers.
Admin
Admin
Well, yeah, I've written a few shel scripts that look like that as a first cut, but I'm typing and telling myself to make a few more passes over it and use more logical tests, not ones that just happen to work, today, on this system. And make a pass and refactor out identical code. It may just be that CF is such a flustercluck the person moved on to the next fire to put out.
Admin
The real issue here is using awk instead of grep to find a substring.
Admin
I was really hoping this story would be about their software. That would be a fun bug to see
Admin
This would fail to fail on any installation not in English too. Plus the check if a string instead of a return code is itself a WTF.
Admin
Really? Who doesn't use BlueDragon or Lucee these days for CFML? They are both deployed as simple WAR files.
In regard to the CFML dislike, um, why?
Admin
Isn't TRWTF how it checks if the binaries are there?
jre_success=
exec "$actvm" 2>&1
case "$jre_success" in Nosuchfileordirectory|installbin*|cannotexecutebinaryfile* ) echo "JRE libraries are missing or not compatible...." echo "Exiting...." ;;What about
command -v $actvm
(which is POSIX btw)? Orwhich
? Etcetera. Anything but a string pattern match!Admin
For your amusement: https://fossies.org/linux/exim/scripts/os-type
Admin
Indeed. It doesn't even set LANG=C beforehand, so hilarity will certainly ensue.
(My favourite anecdote is one case, where as the local Python charmer, a colleague asked me why some install failed, and my response was "You have to wait until April 1st" – because the logfile had locallized timestamps and didn't handle non-ASCII, so "Mär 27" was quite the problem.)
(Also, I've had to patch update monitoring scripts when between RH5 and RH6, the output of yum started to contain a grammatically-correct comma that wasn't previously there. Can we please get XML-over-JSON-over SOAP instead?)
Admin
Being commercial software, coldfusion was only supported on RedHat(And CentOS), Ubuntu, and SuSE linux.
If you tried to do otherwise, you wouldn't get support.
Probably.
Admin
Also, the installer bases its check on English strings, which might just change one day, or the user might prefer a different locale.
Admin
"In 1989, a pair of physicists claimed to have achieved the fusion of hydrogen at room temperatures. This came as quite a shock to other physicists, since fusion was only known to happen inside of stars."
Not quite...
https://en.wikipedia.org/wiki/Fusor
Admin
TRWTF is that they're not using the free and open source alternatives like Lucee Server. You can start a Lucee CFML server with CommandBox CLI (36MB download) and no install and it works anywhere Java runs (including Raspberry Pi's). That's a full working CF server w/a 36 MB download and a single CLI command. That said, I've used the Adobe Linux installers many times before and they worked fine. The poster is likely on an unsupported distro and didn't RTFM.
Admin
Old products? CF is the same age as JavaScript, Ruby, PHP, Java, and newer than SQL, Python, and C. Are you saying all those languages need to die since they're "old"? :) CFML isn't your grandpa's language and hasn't been for years. There's FOSS engines that start from the CLI, JVM interop, ECMA scripting, FP, package managers, and quality MVC. All that needs to die is the old legacy crap that gives it a bad name. Of course, that's true for PHP as well :)
Admin
Wow, spammers are actually reading the articles now before posting their fake answers?
No wait.
If anyone has the AI skill to fake reading an article before posting a fake answer, it's Google. Is Google cooperating with spammers again?
Admin
Is that script closing parens that aren't even open?