The Lair

Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup

oddly shaped command

I go to great (some would say obsessive) lengths to duplicate a Unix command line experience on Windows. While the reasons are probably more complex than saying “I like Windows” or “I don’t like Linux”; it’s not ideology that prompts me to use Windows. It’s partly battery life (usually better with Windows than Linux, by as much as 15% or so on my old Acer), it’s partly software compatibility, it’s partly inertia (read: laziness) on my part.

Recently, I was asked why I liked command line and console based apps so much. This was after I moved from mIRC to the wonderfully configurable irssi and continually raved about it to the luckless chickenbutt. The most readily found reason to move is probably to reduce wear and tear on my fingers, wrists and elbows. I find constantly moving my hand from the keyboard to the mouse is downright inconvenient. So much so that after a few hours of the click frenzy that is Warcraft (for example) my right hand actually cramps over the mouse. Yeah, I should probably cut down on my play and/or not micro quite so much - but I also have a stated goal of reaching 200 APM in a standard ladder game (I hover around the 90-120 mark right now) so less clicking isn’t really going to help me achieve that. But as a rule, the less I have to grab the pointing device *cough*, the more comfortable I am.

Console apps are almost completely reliant on keyboard actions (in the form of shortcuts and mnemonic keys) so my hands never really have to leave the keyboard. Most of my frequently used apps are also heavily keyboard oriented - with lots of shortcuts and accelerators available. For everything else - I maintain a frequently updated copy of GnuWin32 - the Gnu tools for Windows.

There are a few other tool kits which provide similar functions - most notably Cygwin. Cygwin is a essentially a dynamically loadable library (dll) which tries to offer all of the functionality that a standard Unix system would offer. Every application which runs on Unix just needs to know where the Cygwin functions are located and they’ll automatically run on Windows as well. Sounds simple? Well, it is. Except that Cygwin is an emulator and that means that things can get rather slow. Not that this is such an important consideration in the age of 3+ GHz machines, but from a neatness point of view, Cygwin dependent tools require a nasty cygwin.dll be present to function at all. GnuWin32, on the other hand, use exactly what Windows has to offer - no emulation dll is required. They are, in other words, native implementations of the Gnu tools on the Windows platform.

So, browsing the GnuWin32 binaries directory yesterday afternoon; I found an oddly named executable. “[.exe“. It’s not often that you see an executable file named after a left square bracket but that’s exactly what I found here. And even worse, no right square bracket dot exe to keep it company?! Obviously, I punched in [ on the cmd prompt and waited to see what the message would be - …

[: missing ‘]’

Eh?

Wait, how about the standard Gnu syntax for help… [ --help.

Oooh. It’s actually GnuWin32’s implementation of conditionals. Nifty. Having [ .exe available allows anyone to write little shell scripts using the file test operators on Windows.

“oddly shaped command” has 4 comments

  1. Gravatar

    Sin wrote:

    mIRC. Damn. The one way for Pakistani homosexuals to communicate. :-)

    Any suggestions about news aggregators/feed readers? I need to start using one for all my morning “finance/econ” reading, but can’t figure out which is a good one to get.

  2. Gravatar

    drac wrote:

    Sin: Plenty! and the number keeps growing all the time. I’ve started preferring web based news readers because I switch between machines fairly often (don’t need to add the feeds to every installation). You might want to try Google Reader and/or Bloglines (article here).

    There are some things I don’t like about both of those interfaces - but that’s just my personal idiosyncrasy.

    On the desktop reader front, I’d probably say that FeedDemon is a clear winner; although Outlook and even random Firefox plugins do desktop RSS quite well. Wizz and Sage are two that I’ve tried and quite liked.

    Sorry, I’ve given you lots of choice because I’ve tried so many feed readers - I ended up rolling my own, more or less but I’m quite sure you’ll have tried a few of these. All of them support more or less the same features it’s just a matter of picking one that you really like. For example, I pick FeedDemon mostly because I liked the interface.

    I had no idea you used IRC. Woo. How cool is that.

  3. Gravatar

    Sin wrote:

    I’ve actually shifted over from Firefox to Opera now (again?). I don’t know WTF happened to my Firefox install, but all of a sudden all the search engines in the search box vanished; every time I tried to re-add them, they wouldn’t even register. And I’m REALLY finicky about how my interface looks, so the fact that ALL the fucking toolbars re-set themselves each time I ran the programme or opened up a new tab…well, that was a killer. After a dozen (un)installs, I lost the will to live.

  4. Gravatar

    drac wrote:

    Oh. Opera has a decent feed reader too. For certain values of “decent”. One possible candidate I forgot last time, FeedReader. The only problem they used to have was that there would be odd unexplained duplicates of an article appearing on a feed from time to time. Maybe they’ve fixed it now. (or not).

    Also; did the uninstall remove your profile? (probably not). If you didn’t start with a fresh (Firefox) profile, merely installing and uninstalling the Firefox application wouldn’t have made any substantial changes to your interface. The profile manager can be accessed by running “firefox -p” (more info here).

Just say it

*Required
*Required (This site supports gravatars)