Imported from ../bash-2.05b.tar.gz.
[platform/upstream/bash.git] / builtins / eval.def
index db48e12..500e8c7 100644 (file)
@@ -1,7 +1,7 @@
 This file is eval.def, from which is created eval.c.
 It implements the builtin "eval" 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.
 
@@ -46,6 +46,7 @@ eval_builtin (list)
 {
   if (no_options (list))
     return (EX_USAGE);
+  list = loptend;      /* skip over possible `--' */
 
   /* Note that parse_and_execute () frees the string it is passed. */
   return (list ? parse_and_execute (string_list (list), "eval", SEVAL_NOHIST) : EXECUTION_SUCCESS);