From 1c41f98aabc20fce8a1eb8fd7d1b6baabfa1dea5 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 20 Jan 2016 11:22:09 +0000 Subject: 37705: don't turn - to Dash after start of brace parameter --- Test/D04parameter.ztst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Test/D04parameter.ztst') diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index bcea980ad..a6817fe22 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1880,3 +1880,9 @@ >'two words' >'three so-called '\''words'\' >'three so-called ''words''' + + array=(one two three) + array[1]=${nonexistent:-foo} + print $array +0:"-" works after "[" in same expression (Dash problem) +>foo two three -- cgit 1.4.1