Fix PR 11628.
[pspp] / src / split-file.c
index 6eba150b9928032db393430dbcd0c9083a4e0fda..4ff62e178b7ef8a0156c34adad449f6bf1ccad2e 100644 (file)
@@ -21,6 +21,7 @@
 #include <stdlib.h>
 #include "alloc.h"
 #include "command.h"
+#include "dictionary.h"
 #include "error.h"
 #include "lexer.h"
 #include "str.h"
@@ -36,6 +37,9 @@ cmd_split_file (void)
       struct variable **v;
       int n;
 
+      /* For now, ignore SEPARATE and LAYERED. */
+      lex_match_id ("SEPARATE") || lex_match_id ("LAYERED");
+      
       lex_match (T_BY);
       if (!parse_variables (default_dict, &v, &n, PV_NO_DUPLICATE))
        return CMD_FAILURE;