Tuesday, September 16, 2008

Unlearning bash

At debian's IRC someone asked how to replace ***.png to ***.jpg. To which I replied a "bashism."
Fortunately someone else corrected my bash-istic ways on time.

So how to unlearn those pesky bash-ways? It seems the IEEE comes to our rescue with the Open Group Specification.

Other tools seem to be debian's checkbashism command and the ol' technique of using dash instead (with some dose of cursing in between ^_^).

Update: It is a bashism to use the nifty regexp substitution

${var/\.oldext/.newext}

One should instead use the standard way of cutting trailing substrings from a var:

${var%.oldext}.newext

Thursday, September 11, 2008

Lost Trashcan

It seems I am like other people with respect to icons on the Desktop. One day I love them, the next they are a nuisance on my beautiful wallpaper.

I use Gnome and today I wanted my icons back. Do not panic, says the ol'book. Someone else already figured it out.

Neat, ain't it?

Now, if KDE and Gnome could just agree on how to represent these pesky icons so I did not have to delete/add/recycle them every time I decide KDE Gnome is the best thing in the world.