From d38db1bc610cbc9cf32585e914aa05ce077c627c Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 18 Jan 2020 11:50:50 -0800 Subject: [PATCH] Add a test for deep command substitutions --- tests/checks/deep-cmdsub.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/checks/deep-cmdsub.fish diff --git a/tests/checks/deep-cmdsub.fish b/tests/checks/deep-cmdsub.fish new file mode 100644 index 000000000..5a6ac7966 --- /dev/null +++ b/tests/checks/deep-cmdsub.fish @@ -0,0 +1,11 @@ +# RUN: %fish %s + +# Ensure we don't hang on deep command substitutions - see #6503. + +set s "echo hooray" +for i in (seq 63) + set s "echo ($s)" +end +eval $s +#CHECK: hooray +