diff options
author | tjr <tjr@FreeBSD.org> | 2002-06-14 15:08:05 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-06-14 15:08:05 +0000 |
commit | 99e93d002e31d41a29f565c490fc7c5078dce765 (patch) | |
tree | 1fafc1c143278cc30bd0a793d3fe0d601c30ce68 /usr.bin/tput/tput.c | |
parent | f8e6c7f29294711d9585f3005ea34e5d0c6b988f (diff) | |
download | FreeBSD-src-99e93d002e31d41a29f565c490fc7c5078dce765.zip FreeBSD-src-99e93d002e31d41a29f565c490fc7c5078dce765.tar.gz |
Adjust the exit status to conform to SUSv3 and document the fact it takes
multiple `argument' operands.
Diffstat (limited to 'usr.bin/tput/tput.c')
-rw-r--r-- | usr.bin/tput/tput.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tput/tput.c b/usr.bin/tput/tput.c index 522a540..99bb903 100644 --- a/usr.bin/tput/tput.c +++ b/usr.bin/tput/tput.c @@ -86,7 +86,7 @@ main(argc, argv) if (!term && !(term = getenv("TERM"))) errx(2, "no terminal type specified and no TERM environmental variable."); if (tgetent(tbuf, term) != 1) - err(2, "tgetent failure"); + err(3, "tgetent failure"); for (exitval = 0; (p = *argv) != NULL; ++argv) { switch (*p) { case 'c': @@ -214,5 +214,5 @@ static void usage() { (void)fprintf(stderr, "usage: tput [-T term] attribute ...\n"); - exit(1); + exit(2); } |