From faf05be3d2adc99212af74e2507a66de1161a52a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 21 May 2007 09:30:24 +0000 Subject: 23440: Make $param[(R)value] substitute the empty string on failure --- README | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'README') diff --git a/README b/README index 94ba2236c..e80b6fbfb 100644 --- a/README +++ b/README @@ -72,6 +72,10 @@ of the value. The form ${param//#$search/replace} where the value $search starts with "%" considers the "%" to be part of the search string as before. +Parameter subscripts of the form ${array[(R)test]} now return the +empty string if they fail to match. The previous longstanding behaviour +was confusing and useless. + The MULTIBYTE option is on by default where it is available; this causes many operations to recognise characters as in the current locale. Older versions of the shell always assumed a character was one byte. -- cgit 1.4.1