aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fish.cpp')
-rw-r--r--fish.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/fish.cpp b/fish.cpp
index 3d7c749e..36dbdb75 100644
--- a/fish.cpp
+++ b/fish.cpp
@@ -460,6 +460,9 @@ int main(int argc, char **argv)
const io_chain_t empty_ios;
if (read_init(paths))
{
+ /* Stop the exit status of any initialization commands (#635) */
+ proc_set_last_status(STATUS_BUILTIN_OK);
+
/* Run the commands specified as arguments, if any */
if (! cmds.empty())
{