From 0f8ffa62266565017568262b02cecde6f12336b4 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 13 Feb 2012 11:55:02 -0800 Subject: [PATCH] For for crash printing backtrace for command "eval cd sldkfjsdlfk" --- builtin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin.cpp b/builtin.cpp index c880d1597..dbaf5714b 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -2794,7 +2794,9 @@ static int builtin_source( parser_t &parser, wchar_t ** argv ) parser.push_block( SOURCE ); reader_push_current_filename( fn_intern ); - parser.current_block->state1() = fn_intern; + // PCA We need the state to be a wcstring; it would be nice to figure out how to restore this optimization however + //parser.current_block->state1() = fn_intern; + parser.current_block->state1() = fn_intern; parse_util_set_argv( (argc>2)?(argv+2):(argv+1), wcstring_list_t());