Imported from ../bash-4.0-rc1.tar.gz.
[platform/upstream/bash.git] / builtins / inlib.def
index ff068f8..c4faf0d 100644 (file)
@@ -1,23 +1,22 @@
 This file is inlib.def, from which is created inlib.c.
 It implements the Apollo-specific builtin "inlib" in Bash.
 
-Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
+Copyright (C) 1987-2002 Free Software Foundation, Inc.
 
 This file is part of GNU Bash, the Bourne Again SHell.
 
-Bash is free software; you can redistribute it and/or modify it under
-the terms of the GNU General Public License as published by the Free
-Software Foundation; either version 2, or (at your option) any later
-version.
+Bash is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
 
-Bash is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or
-FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-for more details.
+Bash is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License along
-with Bash; see the file COPYING.  If not, write to the Free Software
-Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA.
+You should have received a copy of the GNU General Public License
+along with Bash.  If not, see <http://www.gnu.org/licenses/>.
 
 $PRODUCES inlib.c
 #include <config.h>
@@ -29,12 +28,17 @@ $BUILTIN inlib
 $FUNCTION inlib_builtin
 $DEPENDS_ON apollo
 $SHORT_DOC inlib pathname [pathname...]
+Install user-supplied library.
+
 Install a user-supplied library specified by pathname in the current
 shell process. The library is used to resolve external references
 in programs and libraries loaded after its installation.  Note
 that the library is not loaded into the address space unless it is
 needed to resolve an external reference.  The list of inlibed
 libraries is passed to all children of the current shell.
+
+Exit Status:
+Returns success unless PATHNAME is not found or an error occurs.
 $END
 
 #if defined (apollo)
@@ -51,7 +55,7 @@ inlib_builtin (list)
 
   if (!list)
     {
-      builtin_error ("usage: inlib pathname [pathname...]");
+      builtin_usage ();
       return (EX_USAGE);
     }
 
@@ -64,7 +68,7 @@ inlib_builtin (list)
 
       if (status.all != status_$ok)
        {
-         builtin_error ("inlib failed for %s", list->word->word);
+         builtin_error (_("%s: inlib failed"), list->word->word);
          return_value = EXECUTION_FAILURE;
        }