# HG changeset patch # User Mike Miller # Date 1391988074 18000 # Node ID 5c0b8f2da650d7c8d97aade8270ccc7fd7362dce # Parent 5d14a08e753395139e8c380e760ca2896a60970f Allow save() to write to the terminal with the filename '-' (bug #41505) * load-save.cc (parse_save_options): Treat an argument of '-' as a filename argument instead of an invalid option, restoring the ability to write to the terminal with save(). diff -r 5d14a08e7533 -r 5c0b8f2da650 libinterp/corefcn/load-save.cc --- a/libinterp/corefcn/load-save.cc Fri Feb 07 20:10:02 2014 -0800 +++ b/libinterp/corefcn/load-save.cc Sun Feb 09 18:21:14 2014 -0500 @@ -1143,7 +1143,7 @@ { retval.append (argv[i]); } - else if (argv[i][0] == '-') + else if (argv[i][0] == '-' && argv[i] != "-") { error ("save: Unrecognized option '%s'", argv[i].c_str ()); }