On 4/18/19 11:32 AM, Thomas Deutschmann wrote:
> Actual result:
> ==
> bash-test.sh: line 5: bar=${${foo}_blah}: bad substitution
> Rest of the script
>
>
> Expected result:
>
> bash-test.sh: line 5: bar=${${foo}_blah}: bad substitution
> I run after the failing_func
Hi,
Test script:
#!/bin/bash
failing_function() {
local foo=${1}
# force bad substitution
local bar=${${foo}_blah}
echo "You will never see this text!"
}
if [[ 1 -eq 1 ]]
then
# Current code path
failing_function
echo "I run after the failing_function!"
e