]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Call close_stdout_status.
authorJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:57:03 +0000 (14:57 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:57:03 +0000 (14:57 +0000)
src/printenv.c

index 5de1ff055c8de0105120b756484c779951781f72..6ad9692d3649cd57971d6af3cd0de2ae4f1d3613 100644 (file)
@@ -1,5 +1,5 @@
 /* printenv -- print all or part of environment
-   Copyright (C) 1989-1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1989-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
@@ -70,6 +70,7 @@ If no environment VARIABLE specified, print them all.\n\
 "),
              program_name, program_name);
       puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
+      close_stdout_status (2);
     }
   exit (status);
 }