~kirkland/+junk/bin

« back to all changes in this revision

Viewing changes to errno

  • Committer: Dustin Kirkland
  • Date: 2010-07-27 11:45:49 UTC
  • Revision ID: kirkland@x200-20100727114549-jbnqcywo4vszbx6i
fix errno where "2" or "3" or whatever appear in the description too

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
code="$1"
4
4
 
5
5
if echo "$code" | grep -qs "[0-9]"; then
6
 
        grep -h "\W$code\W" $headers | sed 's/^#define\s*//'
 
6
        grep -hw "\W$code\W" $headers | sed 's/^#define\s*//'
7
7
else
8
8
        grep -hi "$code" $headers | sed 's/^#define\s*//'
9
9
fi