diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-07 14:52:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-07 14:52:16 +0000 |
commit | 1a898f0449fa4fd704740138a98f0a97c326754f (patch) | |
tree | 0f276eb13d67812080725cb061556233846d3112 | |
parent | ab241ac3bea8ceb561fc0cd2ceeb78448ca160b6 (diff) | |
download | coreutils-1a898f0449fa4fd704740138a98f0a97c326754f.tar.xz |
Include "closeout.h".
(main): Call atexit with close_stdout.
-rw-r--r-- | src/expr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 96b182326..7dea02b75 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1,5 +1,5 @@ /* expr -- evaluate expressions. - Copyright (C) 86, 1991-1997, 1999 Free Software Foundation, Inc. + Copyright (C) 86, 1991-1997, 1999, 2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -37,6 +37,7 @@ #include "long-options.h" #include "error.h" #include "xalloc.h" +#include "closeout.h" /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "expr" @@ -168,6 +169,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + posixly_correct = (getenv ("POSIXLY_CORRECT") != NULL); /* Recognize --help or --version only if POSIXLY_CORRECT is not set. */ |