|
From: | Michael Green |
Subject: | [Help-bash] What is the limit for number of nested parameter expansions? |
Date: | Tue, 19 Feb 2019 14:09:52 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 |
Hello,please take a look at the following expression: printf '%s\n' "${var%?"${var#"${var%?}"}"}", which consists of 3 nested expansions. I was wondering what the maximum number of nested expansions is, where is it defined and what it depends on? On my system I am getting segfaults at around 9000 expansions.
Thank you very much for your time, Michal G.
[Prev in Thread] | Current Thread | [Next in Thread] |