/* 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
#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"
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. */