mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-19 04:41:15 -03:00
Fix to stop reporting config.fish execution as coming from "standard
input" within backtraces
This commit is contained in:
2
fish.cpp
2
fish.cpp
@@ -227,7 +227,9 @@ static void source_config_in_directory(const wcstring &dir)
|
||||
const wcstring escaped_dir = escape_string(dir, ESCAPE_ALL);
|
||||
const wcstring cmd = L"builtin source " + escaped_dir + L"/config.fish 2>/dev/null";
|
||||
parser_t &parser = parser_t::principal_parser();
|
||||
parser.set_is_within_fish_initialization(true);
|
||||
parser.eval(cmd, io_chain_t(), TOP);
|
||||
parser.set_is_within_fish_initialization(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user