Edgy Eft + /bin/sh == somebody gonna get a hurt real bad...
So last night, while freezing my arse off guarding the cannon, I was working on a script to randomly select my wallpaper. I was basing this off of a script I found written in sh, and was modifying it to no avail. It kept selecting the last wallpaper in the folder, despite the fact that it was supposed to be random.
So I looked into it, and discovered something that angered me considerably, but I thought I'd pass it on.
Edgy + sh == broken!
They made a move to dash, which essentially means random does NOT work in sh under Edgy. A semi-fix was found, in the form of:
>sudo apt-get remove dash
Thought any scripters out there might like to know.
- Login to post comments

Not quite Randall. But close
Not quite Randall. But close :)
Many scripts make the mistake of invoking /bin/sh when they should invoke /bin/bash. Both dash and bash implement the same set of skills expected in the POSIX sh, but bash will allow you to use bash-only features when invoked as sh, whereas dash won't. So the real solution is to fix your script so that it invokes /bin/bash.
--
Andrew