From mboxrd@z Thu Jan 1 00:00:00 1970 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes From: "Andrej Borsenkow" To: "ZSH workers mailing list" Subject: Incomplete/misleading description of GLOB_SUBST and $~ paramter expansion flag Date: Tue, 2 Feb 1999 13:36:46 +0300 Message-ID: <001f01be4e97$eecf8c00$21c9ca95@mowp.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 Importance: Normal X-Mailing-List: 5169 This resulted from this line of Sven's: if [[ "$cmd1" == $~pat || "$cmd2" == $~pat ]] then (again something, I didn't know before and that is hard to infer from manuals :-( The current description of above items imply, that they affect only file name expansion (globbing). The reality is, they prevent globbing metacharacters from being quoted in _any_ context where glob pattern is used. This includes, but is not limited to, filename expansion. The suggested wording (for both) is something like "by default metacharacters, used in globbing, are quoted in result of parameter expansion. This option (flag) prevent this quoting, enabling the result of parameter expansion to be interpreted as pattern in subsequent filename expansion or pattern matching in builtin condition, case etc." Probably, some examples (like the above) would also be nice. BTW is -M flag to completion affected by GLOB_SUBST? /andrej