News for hackers. Stuff that matters.
Re:Show HN: Hacker News without leaving your terminal by nzmsv on Monday December 26, 2011 @03:32AM (#3392536)
Changing "sed -E" to "sed -r" and all instances of "==" to "=" makes this script run on my Debian system. Unfortunately, it leaves the terminal blue when it is done.
Re:Show HN: Hacker News without leaving your terminal by makecheck on Monday December 26, 2011 @03:43AM (#3392551)
If you add a line like the following to the end of the script, any color changes should be undone:

    echo "\033[0m"
Also, I believe Debian's /bin/sh is "dash" whereas it is "bash" on most other systems. You could change your copy of the script's header to use "/bin/bash" instead of "sh" (assuming that bash is installed too), which is easier than fixing equal-signs and such.

As far as the original code is concerned, using "perl" may be slightly more portable than "sed -E".

Re:Show HN: Hacker News without leaving your terminal by jeybalachandran on Monday December 26, 2011 @10:28AM (#3393068)
There is a patch in master to support both Debian and Mac OS X. OS X doesn't use GNU sed which was the source of the problem.