News for hackers. Stuff that matters.
Re:PS1 generator by stormbrew on Monday August 12, 2013 @11:53PM (#6203908)
I have this bit of magic in mine to map return codes to some semblance of a string version of them:

    LED=$(perl -le "\$!+=${LE};print \$!" 2>/dev/null || echo "unknown error")
It's not perfect but I haven't found a more reliable way to map exit status' to something like the right meaning.

There are no comments on this comment yet.