?

Log in

No account? Create an account
jl8e
September 14th, 2006
02:15 pm

[Link]

Previous Entry Share Flag Next Entry
I Hate Software
So, I had to replace my hard disk a while back.

This requires reinstalling all the various and sundry software I use that doesn't come standard with the thing. Because I'm lazy^H^H^H^Hefficient, I've been doing a lot of this on an as-needed basis. After all, if I don't ever need something, why bother having it installed?

So recently I got around to installing MySQL and reloading my databases from the backup dump. Should be simple, right?

Ha.

Well, actually, the install was easy. So was the restore.

I then spent a considerable amount of time persuading it to let me authenticate from the command line. I eventually beat it into submission, but I'm not entirely sure how.

Today, I downloaded and installed the Perl modules that let me speak to MySQL from a script.

That went smoothly enough, except that the compile of DBD::mysql wants to run a bunch of tests as the mysql root, and wants there to be no password for this. (Why doesn't it ask for the password? Because that would make sense.)

No problem. Unset the password, run the build, and set it again.

And lo, we have the same problems.

However, the normal user accounts were working, and the process of stopping and starting the server was getting annoying, so I decided to muddle by for now, and rant about it on LJ.

Then, while writing this rant, I had an inspiration - I'd set the password from the command line, and it contains some shell metacharacters, so some backslashes had been inserted.

Try the password with some backslashes, and lo, I'm in.

So why is this still an "I hate software" post, rather than an "I'm dumb" post?

This:

jl8e$ echo "!"
-bash: !: event not found
jl8e$ echo "\!"
\!

(Yes, it works right in single quotes, but that's indescribably stupid behavior.)

Current Mood: angryangry
Current Music: "Seething Hate" would be a good name for a band
Tags:

(2 comments | Leave a comment)

Comments
 
[User Picture]
From:mneme
Date:September 14th, 2006 07:52 pm (UTC)
(Link)
I think that's "I hate the bourne shell".

FWIW, I don't -- I think its quoting behavior is...dificult, if consistent
(a lot more can happen in double-quotes than meets the eye, and I don't even pretend to understand "sh" curly braces. But -some- of the cognitive dissonance is because it does some interesting expressive stuff that's poorly understood (other stuff, however, is because it's got a bad quoting semantics compared to, say, perl -- one that makes it far harder than it should be to preserve text via multiple levels of interpolation).
[User Picture]
From:merlinofchaos
Date:September 15th, 2006 01:35 am (UTC)
(Link)
Welcome to the wonderful world of shell quoting, which is exciting at best and damned fucking inconvenient at worst.
Powered by LiveJournal.com