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 Date: Tue, 2 Feb 1999 11:45:58 +0100 (MET) Message-Id: <199902021045.LAA08685@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Tue, 2 Feb 1999 13:36:46 +0300 Subject: Re: Incomplete/misleading description of GLOB_SUBST and $~ paramter expansion flag X-Mailing-List: 5170 Andrej Borsenkow wrote: > 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. Agreed, we should document this. > BTW is -M flag to completion affected by GLOB_SUBST? No. Completion uses it's own matching code. Once I was dreaming of using the existing globbing code, but since completion needs a lot of information that is hard to get out of the globbing code (or impossible without a lot of hacking), I had to write specialised functions. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de